2 messages in net.sourceforge.lists.courier-maildrop[maildropl] complex patterns?
FromSent OnAttachments
Adam McKennaNov 19, 2001 5:35 pm 
Sam VarshavchikNov 19, 2001 6:57 pm 
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:[maildropl] complex patterns?Actions...
From:Adam McKenna (ad@flounder.net)
Date:Nov 19, 2001 5:35:39 pm
List:net.sourceforge.lists.courier-maildrop

Does maildrop support more complex regexp's than listed in the "tips and tricks" section?

I want to do something like this..

if (
/^(to|cc).*(qma@list.cr.yp.to|dn@list.cr.yp.to|qmai@argus.pipeline.ch)/:h
) { to "$HOME/Mail/qmail/" }

Is this possible, or do I need to do this:

if (/^to.*qma@list.cr.yp.to/:h || /^cc.*qma@list.cr.yp.to/:h || ....

The former is the method supported by procmail (actually, as most of the people reading this probably already know, procmail matches ^TO as To: and CC: and a couple other things as well, so with procmail I could do:

:0: * ^TO.*(qma@list.cr.yp.to|dn@list.cr.yp.to|qmai@argus.pipeline.ch) /home/adam/Mail/qmail/

(no, I don't actually filter my mailing lists like this, it's just an example.)

--Adam