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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to