Replacement for antispam plugin

Michael Slusarz michael.slusarz at dovecot.fi
Fri Feb 10 17:34:19 UTC 2017


> On February 10, 2017 at 9:25 AM George Kontostanos <gkontos.mail at gmail.com> wrote:

[snip]

> I think that this needs some change:
> 
>  # From Spam folder to elsewhere
>   imapsieve_mailbox2_name = *
>   imapsieve_mailbox2_from = Spam
>   imapsieve_mailbox2_causes = COPY
>   imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
> 
> When a message from Spam is moved to Trash then the report-ham.sieve is
> being executed.
> 
> Can we add an exception for the Trash folder?

This is handled in the sieve script.  E.g.:

require "environment";
if environment "imap.mailbox" "Trash" {
        stop;
}

michael


More information about the dovecot mailing list