Re: [Exim] Is it possible for forwarders to filter tagged sp…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Michael Dominok
Date:  
À: exim-users
Sujet: Re: [Exim] Is it possible for forwarders to filter tagged spam?
On Fri, 2003-12-19 at 00:21, Liu Shuai wrote:
> Hi all,
>
> I am using SpamAssassin with Exim. Is it possible to set it up so that when
> a forwarder forwards the e-mail
> to a remote e-mail account, it doesn't forward the e-mail that has been
> already tagged as spam by SpamAssassin?
> The tagged spam usually has a subject begins with *****Spam****.

I'd suggest checking for the Spam-Status-Tag. Insert

if $h_X-Spam-Status: contains "Yes" or "${if def:h_X-Spam-Flag
{def}{undef}}" is "def"
then
    save $Home/Maildir/spam/
    finish
endif


in your .forward. In front of the section where you're doing the
forwarding (deliver). If you don't want to save the spam simply replace
the save '$Home...' with 'seen' which will delete all tagged Spam.

HTH

Michael

--
Michael Dominok        Tel.: +49 231 61048 - 42
natural computing GmbH    Fax.: +49 231 61048 - 40
Martener Strasse 535     Mail: michael.dominok@???
44379 Dortmund         http://www.natural-computing.de/