Marks as read on mover to Archive
Christian Kivalo
ml+dovecot at valo.at
Sun May 13 14:32:41 EEST 2018
On 2018-05-12 08:55, @lbutlr wrote:
> How would I setup dovecot so that when messages are moved to the
> Archive mailbox, they are marked as read?
>
> Would it be similar to the imap-sieve for spam tagging?
>
> imapsieve_mailbox1_name = Junk
> imapsieve_mailbox1_causes = COPY
> imapsieve_mailbox1_before =
> file:/usr/lib/dovecot/sieve/report-spam.sieve
>
> Or is there a simpler method?
I'm using that apporach to mark every mail that's moved to trash as
read:
imapsieve_mailbox1_name = Trash
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before =
file:/srv/sieve/imapsieve/setflag-seen.sieve
## setflag-seen.sieve
# set flag "\\seen"
require ["imap4flags"];
setflag "\\seen";
> If it matters:
>
> mailbox Archive {
> auto = subscribe
> special_use = \Archive
--
Christian Kivalo
More information about the dovecot
mailing list