[Ned Freed]:
> or how about "*a*"?
${1} - String before the last a
${2} - String after the last a.
while this is easy to explain and understand, my original suggestion
was
${1} - String before the last a
${2} - "a"
${3} - String after the last a.
which I now realise may have merit when matching two lists against
eachother or when using the anyof test.
if header :matches [ "To", "Cc" ] [ "foo(_at_)*(_dot_)no",
"bar(_at_)*(_dot_)com" ] {
redirect "kjetilho+${1}ifi.uio.no";
}
the match order for [ a, b ] [ A, B ] should be aA, bA, aB, bB. this
means that messages sent to both addresses will be forwarded to
<kjetilho+foo(_at_)ifi(_dot_)uio(_dot_)no>, i.e. the first match string has
precedence.
in this example, what the wildcard matches is irrelevant.
--
Kjetil T. | read and make up your own mind
| http://www.cactus48.com/truth.html