Default sieve mark seen?
Aki Tuomi
aki.tuomi at open-xchange.com
Tue Sep 22 09:34:28 EEST 2020
On 18.9.2020 19.51, @lbutlr wrote:
> Any ideas on this?
>
>> On 05 Sep 2020, at 11:47, @lbutlr <kremels at 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
More information about the dovecot
mailing list