On 18.9.2020 19.51, @lbutlr wrote:
Any ideas on this?
On 05 Sep 2020, at 11:47, @lbutlr kremels@kreme.com wrote:
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?
Would
fileinto :flags "\\Seen" "Junk";
work any better?
Aki