I have not yet enabled imapsieve -- so far I have had fairly good luck avoiding spam simply by using SPF+DKIM+DMARC and enabling basic verification of incoming mail with opendkim and opendmarc.
Lately I have been reading some books on "fuzzy logic" and "fuzzy sets" with quite serious applications to artificial intelligence and neural networks that might be useful to classify "ham versus spam" based on actual content and context.
Spam versus ham is not the only sort of classification I would want to do on large volumes of email -- I might want to have separate folders to automatically classify incoming messages into separate categories for, say, friends-and-family, legal-related email, specific business interests, open-source-software or technical related email, mathematics, arts or crafts or literature or hobbies, etc.
This kind of stuff must be easily configurable -- per user -- by individual end users who are not experts in editing configuration files.
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>
: 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
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.