6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] if/else problems
FromSent OnAttachments
Charles J. BoeningMar 17, 2002 7:11 pm 
Charlie WattsMar 17, 2002 7:58 pm 
Charles J. BoeningMar 17, 2002 8:21 pm 
Charlie WattsMar 17, 2002 8:38 pm 
Charles J. BoeningMar 17, 2002 8:46 pm 
Mark WeinemMar 19, 2002 11:06 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] if/else problemsActions...
From:Charlie Watts (cewa@frontier.net)
Date:Mar 17, 2002 8:38:45 pm
List:net.sourceforge.lists.courier-maildrop

On Sun, 17 Mar 2002, Charles J. Boening wrote:

Maildrop appears to execute properly (spam gets tagged) with the following:

import EXT import HOST

xfilter "/usr/bin/spamc -p 1783 -f -u $EXT@$HOST" to "./Maildir/"

I want to add a test for "X-Spam-Flag: YES" in the header. That brings me to the following:

import EXT import HOST

if($SIZE < 262144) { xfilter "/usr/bin/spamc -p 1783 -f -u $EXT@$HOST" }

if ( /^X-Spam-Flag: YES/ ) { to "./Maildir/.SPAM/" } else { to "./Maildir/" }

What about replacing:

else { to "./Maildir/" }

With

to "./Maildir/"

? Just remove it from the else block, but leave the "to" line ? (I don't understand why it isn't working how you have it)