12 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Hidden Feature in Mai...
FromSent OnAttachments
Ed WildgooseMar 28, 2005 10:45 am 
Jeremy KitchenMar 28, 2005 12:09 pm 
Ed WildgooseMar 28, 2005 1:14 pm 
Ed WildgooseMar 29, 2005 8:43 am 
Paul L. AllenMar 29, 2005 3:28 pm 
Sam VarshavchikMar 29, 2005 3:41 pm 
Ed WildgooseMar 29, 2005 5:25 pm 
Sam VarshavchikMar 29, 2005 5:42 pm 
Ron JohnsonMar 29, 2005 6:37 pm 
Sam VarshavchikMar 29, 2005 7:39 pm 
Ron JohnsonMar 29, 2005 8:23 pm 
Ed WildgooseMar 30, 2005 12:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Hidden Feature in Maildrop?Actions...
From:Ron Johnson (ron.@cox.net)
Date:Mar 29, 2005 8:23:36 pm
List:net.sourceforge.lists.courier-maildrop

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:

Ed Wildgoose writes:

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