Univention Bugzilla – Bug 38759
univention-spamassassin is unaware of dovecot
Last modified: 2015-07-09 18:10:23 CEST
univention-spamassassin has to be adopted for the new dovecot integration. Currently the script univention-sa-learn walks via "find" through /var/spool/cyrus/mail/domain/ and learns all spam folders, that have been defined via UCR. Ideally univention-sa-learn detects whether dovecot or cyrus is used. If dovecot is used, it would be great, if \Junk folders are detected automatically. Also the predefined (by name!) spam folder should be learned.
Commit 61443 adds support for Dovecot, incl. RFC 6154 flagged \Junk folders.
if configRegistry.get("mail/dovecot"): → if configRegistry.is_true("mail/dovecot"): if mail/dovecot/folder/spam is set to "none", spam learning is disabled even if there are special \Junk folders defined: if [ -n "$SPAMFOLDER" ]; then Currently, the code is unable to handle subfolders in dovecot as spam/ham folders. → replace('/', '.') → REOPEN Besides that, it works as expected.
Commit 61724: * fix sa-learn script, so it runs even if mail/dovecot/folder/spam=none when special \Junk folders are defined * handle subfolders in mail/dovecot/folder/{spam,ham}
Code change is OK, but changelog entry is missing and the package has not been rebuilt → REOPEN
Changelog is in 61810, package built: 6.0.2-1.75.201507061633.
(In reply to Daniel Tröder from comment #5) > Changelog is in 61810, package built: 6.0.2-1.75.201507061633. → OK → VERIFIED
<http://errata.univention.de/ucs/4.0/239.html>