On 3/20/21 7:37 AM, dove...@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.