>>>>> "Hadmut" == Hadmut Danisch via dovecot <dovecot@dovecot.org> writes:
> Hi, > I'm using dovecot, running Ubuntu 24.04 with dovecot > 1:2.3.21+dfsg1-2ubuntu6 and postfix. Since Ubuntu dropped mailfilter > for 24.04, I am replacing mailfilter with the sieve filter. > Problem/Question: > I am using something like > if header :matches "Subject" "htest" { > addflag "$label1"; > fileinto :create "Test.${year}.${month}"; > stop; > } > following https://doc.dovecot.org/2.3/configuration_manual/sieve/examples/ > which works, but not as expected: When having the addflag, the mail > is delivered as seen, i.e. put in the /cur directory of the Maildir > folder. Without the addflag, it is put into /new , where it belongs > to (as unseen). Maybe just do: addflag "$label1"; removeflag "\\Seen"; to the seive script body? and make sure you have something like: require ["fileinto", "envelope"]; require "imap4flags"; require "regex"; at the top of your sieve script so you load all the right modules. > Why does addflag "$label1"; mark the Mail as seen? > regards > Hadmut (please respond directly, I am not on this list) > _______________________________________________ > dovecot mailing list -- dovecot@dovecot.org > To unsubscribe send an email to dovecot-le...@dovecot.org _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org