3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering on received...
FromSent OnAttachments
PollywogDec 14, 2004 9:09 am 
Devin RubiaDec 14, 2004 10:36 am 
PollywogDec 14, 2004 11:21 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] filtering on received headerActions...
From:Devin Rubia (dev@thezone.net)
Date:Dec 14, 2004 10:36:38 am
List:net.sourceforge.lists.courier-maildrop

On Tue, Dec 14, 2004 at 05:09:27PM +0000, Pollywog wrote:

I have this filter in a file and the filter is called by maildrop for each email received:

FILTERS=$HOME/.filters

if ( /^Received:.*/ && lookup( $MATCH2, "$HOME/.filters/dat.badrcvd" )) { to "$HOME/Maildir/.Spam-rcvd/" }

[SNIP]

"^Received:.*" is MATCH

Did you mean "^Received: *!.*" ?

With that, "^Received: *" is MATCH and .* is MATCH2