Univention Bugzilla – Bug 46670
Horde App: default spam folder not compatible with dovecot
Last modified: 2023-03-25 06:42:42 CET
In der Datei /etc/horde/ingo/prefs.d/10-ucs.php wird der Standardordner für als Spam erkannte Mails vorgegeben: 'value' => 'a:2:{s:6:"folder";s:10:"INBOX/Spam";s:5:"level";i:5;}' Allerdings scheint das (zumindest mit Dovecot) nicht zu funktionieren, das Dropdown im Webinterface steht weiterhin auf „Bitte Ordner auswählen“. Ohne das Präfix „INBOX/“ hatte ich allerdings Erfolg: 'value' => 'a:2:{s:6:"folder";s:4:"Spam";s:5:"level";i:5;}'
The Dovecot integration by default marks the folders "Junk" and "Spam" with SPECIAL-USE flags (RFC 6154): $ ucr search mail/dovecot/mailboxes/special […] mail/dovecot/mailboxes/special/Junk: \Junk mail/dovecot/mailboxes/special/Spam: \Junk And - most importantly - the default Sieve script (/var/spool/dovecot/private/<domain>/<local_part>/.dovecot.sieve) has this rule: ------------------------------------------------------------- if header :contains "X-Spam-Level" "*****" { fileinto :create "Spam"; stop; } ------------------------------------------------------------- Thus the "Spam" folder is automatically created upon access/spam-receiving directly in the users root folder (/var/spool/dovecot/private/<domain>/<local_part>/Maildir/.Spam) and not below INBOX.
fixed in new horde app *** This bug has been marked as a duplicate of bug 41182 ***
I did not test whether Spam is actually moved into this folder, but all configuration options look good. The interface also has "Spam" configured and the user specific sieve script updates accordingly.