On Tue, 2005-03-29 at 22:38 -0500, Sam Varshavchik wrote:
Ron Johnson writes:
On Tue, 2005-03-29 at 20:41 -0500, Sam Varshavchik wrote:
To: joe@somewhere,bo...@somewhere.else,gary@whoknowswhere
will set MATCH to "To: joe@somewhere,bo...@somewhere.else," and MATCH2
to "gary@whoknowswhere".
The MATCH variables are NOT set when weighted scoring is used, since
the same pattern is matched multiple times.
From the OP:
I'm converting some filters from procmail and I use the following
construct quite a lot:
if (/^From: *(someaddress@somewhere|someotheraddress|somewhereelse)/)
{ }
However, it's not documented as being valid syntax in the maildrop
documentation. I didn't even think to just try it, but converted a
bunch of filters to a repetitive IF syntax instead. Completely by
chance I spotted that it was possible from someones example filter.
I don't see where the OP's use of the logical-OR is explicitly
mentioned in the PATTERNS section.
+. This is EXACTLY equivalent to (~|=|+), however with large
list of characters this notation is much shorter. In addition,
But I do agree this needs to be emphasized a bit more.
Ah, now I see it in PATTERNS.
"The great tragedy of science -- the slaying of a beautiful
hypothesis by an ugly fact."
Thomas Huxley