5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Rule problems, not fi...
FromSent OnAttachments
Jim McConnellFeb 27, 2004 10:46 am 
Ajai KhattriFeb 28, 2004 1:10 pm 
Rich DuzenburyFeb 28, 2004 1:58 pm 
Jeremy KitchenFeb 28, 2004 5:22 pm 
Jeremy KitchenFeb 29, 2004 3:22 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:Re: [maildropl] Rule problems, not filtering properlyActions...
From:Ajai Khattri (aj@bway.net)
Date:Feb 28, 2004 1:10:47 pm
List:net.sourceforge.lists.courier-maildrop

On Fri, 27 Feb 2004, Jim McConnell wrote:

The following two rules are what work intermittently:

if ( /^To:.*qma@list.cr.yp.to.*/ || /^Cc:.*qma@list.cr.yp.to.*/ ) to "$DEFAULT/.Lists.qmail"

if ( /^To:.*spam@incubator.apache.org.*/ || \ /^Cc:.*spam@incubator.apache.org.*/ ) to "$DEFAULT/.Lists.SpamAssassin"

Why not use hasaddr() instead? i.e.:

if (hasaddr(qma@list.cr.yp.to)) { to "$DEFAULT/.Lists.qmail" }

hasaddr() parses the headers grabbing all email addresses. I find this to be more reliable than trying to cover all the possible ways people send email to a mailing list.