On March 19, 2021 11:38:19 PM AKDT, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 20/03/2021 05:55 Gedalya <gedalya@gedalya.net> wrote:
On 3/20/21 7:37 AM, dovecot@steve.wattlink.net wrote:
plugin {
imapsieve_mailbox1_before = file:/usr/local/etc/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY APPEND
imapsieve_mailbox1_name = Spam
imapsieve_mailbox2_before = file:/usr/local/etc/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_name = *
}
- - - ->8 - - - -
I see that the static rule ought to have matched,
no!
- - - - 8<- - - -
Mar 19 16:21:48 mhv3 dovecot[47532]: imap(steve)<47541><ROnt+uu9idkYgsde>: Debug: imapsieve: mailbox INBOX: APPEND event
- - - ->8 - - - -
For INBOX (or * in your case) you only have COPY from Spam configured, not APPEND.
APPENDing to Spam should trigger the relevant script though.
If you want to enable ham training by uploading a message to INBOX you could add a third rule mentioning INBOX by name with APPEND as cause.
We provide this handy guide for teaching spam filters, see https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/
Aki