> On February 10, 2017 at 9:25 AM George Kontostanos <gkontos.m...@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