This is a discussion on Re: [courier-users] Global Filter within the Courier-Imap forums, part of the Mail Servers and Related category; Bill Taroli wrote: > Henry F. Camacho Jr wrote: >> I am trying to create a global filter that ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |