Re: [courier-users] Global Filter

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 ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-23-2006
Larry Moore
 
Posts: n/a
Default Re: [courier-users] Global Filter

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0