procmail
[Top] [All Lists]

Re: newbie question

2003-01-16 17:07:06
On Thu, Jan 16, 2003 at 03:25:43PM -0700, Michele Francis wrote:
I have this working
:0
* ^ From:.*awsome.net|\
 ^From:.*m100.net|\
 ^From:.deals.com
/dev/null

Why doesn't this work?
:0
* ^ From:.*awsome.net
* ^From:.*m100.net
* ^From:.deals.com
/dev/null

Because the second form is ANDed, eg: If the message is From:
something(_at_)awsom(_dot_)net AND From: something(_at_)m100(_dot_)net AND...

A shorther, though perhaps less readable, form of the first recipe would be:

:0
* ^From:.*((awsom|m100)\.net)|deals\.com)
/dev/null

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>