Re: set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Jakobus Schürz
Ok. I tried another Thunderbird-specific Flag: require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; if environment :matches "imap.email" "*" {   set "email" "${1}";   } addflag "Junk"; addflag "\\seen"; addflag "$label3"; pipe :copy "learn-spam.sh"; pipe :

Re: set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Jakobus Schürz
Hi Ralph! This is, what calls the correct sive-filter rules. I have that already in use. But the file file:/etc/dovecot/sievepipe/report-spam contains my sieve-script from my first posting. So, the difference from setflag to addflag is, setflag sets the flags, and only the given flags (removing

Re: set seen flag and junk moving a mail manually to JUNK

2018-12-04 Thread Ralph Seichter
* Jakobus Schürz: > addflag "Junk"; > setflag "\\seen"; That's probably not what you want, because the 'setflag' command replaces all existing flags. In any case, I recommend you use this method instead: plugin { sieve_pipe_bin_dir = /etc/dovecot/sievepipe # Message moved into Spam fo