> On November 25, 2017 at 11:12 AM Felix Rubio Dalmau <fe...@kngnt.org> wrote: > > > Hi all, > > When I send a message to trash, without previously reading it (just > with the subject is enough to say I do not want to read it), it remains as > "unread". Then, clients (I am using Kmail) report there are unread message, > when all of them are in Trash. The question, then is: Is there any way to > automatically mark a message as read, when that message is moved to Trash? > > Thank you! > Felix
You can try writing an imapsieve script for this: # dovecot.conf plugin { # From elsewhere to Trash folder imapsieve_mailbox1_name = Trash imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/mark-seen.sieve } protocol imap { mail_plugins = $mail_plugins imap_sieve } # mark-seen.sieve require ["imap4flags"]; setflag "\\seen"; Aki