procmail
[Top] [All Lists]

Re: Filtering question

2001-08-27 01:20:18
On Sun, Aug 26, 2001 at 10:40:28AM -0400, Jan Schaumann wrote:
:0c:
*^(To|Cc):*(_dot_)FOCUS-LINUX(_at_)SECURITYFOCUS\(_dot_)COM
FOCUS-LINUX.list

:0:
*^(To|Cc):*(_dot_)BUGTRAQ(_at_)SECURITYFOCUS\(_dot_)COM
BUGTRAQ.list

should do the trick.

The "c" in the first filter tells procmail to continue after processing
this directive.  I changed the "| formail >>", as I'm not sure of the
advantage; I might be wrong.

Not a good idea. Anything that matches the first recipe, but not the second,
will be delivered to the FOCUS-LINUX.list and $DEFAULT. Which isn't what he
wants.

:0:
#* ^Sender(_dot_)*FOCUS-LINUX(_at_)SECURITYFOCUS(_dot_)COM
* ^Mailing-List:(_dot_)*focus-linux-help(_at_)securityfocus(_dot_)com
$SECURITY/focus-linux

:0:
#* ^Sender:(_dot_)*bugtraq(_at_)securityfocus(_dot_)com
* ^Mailing-List:(_dot_)*bugtraq-help(_at_)securityfocus(_dot_)com
$SECURITY/bugtraq


Keep in mind that if you're squashing duplictes (per man procmailex) the point
is moot.

-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com
_______________________________________________
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>