Mail: enable spam training through imap-sieve #61
Loading…
Reference in a new issue
No description provided.
Delete branch "imap-sieve"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trains the Spam filter with mails moved to spam and the ham database with mail moved out of the spam folder.
https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/
Currently the actual Sieve scripts have to live stateful in /var/lib/dovecot/imap_sieve since they have to be compiled in a rw environment. Alternative would be some wonky solituion using packaging like here:
https://github.com/freifunkhamburg/mail2-nixos-config/blob/master/sieve-report-spam-ham.nix
As an alternative to that I could try to build something with systemd.
Weirdly, on my private machine
/var/lib/dovecot/imap_sieve
was created by some service automatically. But I could not reproduce that and still have no clue with service ever created it.Imap-Sieve scripts are now put into /etc/dovecot/sieve. Only weirdness is that you get the following error from time to time:
Besides that it works just fine.
lgtm :)