7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] repeat question: cond...
FromSent OnAttachments
Payal RathodOct 17, 2006 11:32 am 
Rick RomeroOct 17, 2006 11:35 am 
Devin RubiaOct 17, 2006 11:48 am 
Payal RathodOct 18, 2006 7:22 am 
Devin RubiaOct 18, 2006 9:28 am 
Payal RathodOct 18, 2006 11:35 am 
Sam VarshavchikOct 18, 2006 2:37 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] repeat question: conditional deliverActions...
From:Devin Rubia (dev@thezone.net)
Date:Oct 18, 2006 9:28:32 am
List:net.sourceforge.lists.courier-maildrop

On Wed, Oct 18, 2006 at 10:22:52AM -0400, Payal Rathod wrote:

On Tue, Oct 17, 2006 at 04:18:58PM -0230, Devin Rubia wrote:

$ man maildropfilter search for "LOOKUP"

I had already studied the man page, but I could understand it at all. The MATCH and MATCH2 parts are also not clear. I know something about regexes properly. Do you have an example rc file to show?

You mean you could _not_ understand it?

From the manpage:

if ( /^To:\\s*(.*)/ && lookup( $MATCH1, "badto.dat" )) { exit }

Not sure it gets much simpler than that. Since you can't seem to figure it out, though...

if ( /^From:\\s*(.*)/ && lookup( $MATCH1, "/etc/whitelist" )) { to "$DEFAULT" } else { to "$DEFAULT/.spam" }

All you need besides that is good entries in you whitelist file.