Default sieve mark seen?

@lbutlr kremels at kreme.com
Sat Sep 5 20:47:40 EEST 2020


I have the following in my default.sieve file:

require "fileinto";
if header :contains "X-spam-flag" "YES" {
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables", "imap4flags"];
    setflag "\\Seen";
    fileinto "Junk";
}

This is largely unchanged, except that I added imap4flags and set flag "\\Seen"; recently.

The messages still get filed into the user's Junk folder, but they are still marked as unread.

I also have

  imapsieve_mailbox3_name = Archive
  imapsieve_mailbox3_causes = COPY
  imapsieve_mailbox3_before = file:/usr/lib/dovecot/sieve/mark-read.sieve

 # cat /usr/lib/dovecot/sieve/mark-read.sieve
require ["imap4flags"];
setflag "\\seen";

Which works fine.

How do I fix this?


-- 
"The female of all species are most dangerous when they appear to
	retreat." - Don Marquis



More information about the dovecot mailing list