4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Global Filter
FromSent OnAttachments
Henry F. Camacho JrJul 22, 2006 2:38 pm 
Bill TaroliJul 23, 2006 12:47 am 
Larry MooreJul 23, 2006 1:10 am 
Bill TaroliJul 23, 2006 1:40 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: [courier-users] Global FilterActions...
From:Larry Moore (lmo@starwon.com.au)
Date:Jul 23, 2006 1:10:35 am
List:net.sourceforge.lists.courier-users

Bill Taroli wrote:

Henry F. Camacho Jr wrote:

I am trying to create a global filter that will take any message marked as SPAM by Spam assassin and place that email into a Junk Folder. Can someone point me in the right direction.

I'm not at all certain that a filter can even do that. I accomplish the same thing with maildrop (in global maildroprc) and it works just fine...

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

A more refined routine;

... if ((/^X-Spam-Flag:.*YES/)) { SPAM_FOLDER="Junk" exception { to $DEFAULT/.$SPAM_FOLDER/ } exception { `maildirmake -f "$SPAM_FOLDER" "$DEFAULT"` to $DEFAULT/.$SPAM_FOLDER/ } EXITCODE=75 exit } ...

Cheer,

Larry.