Bug 46670 - Horde App: default spam folder not compatible with dovecot
Horde App: default spam folder not compatible with dovecot
Status: CLOSED DUPLICATE of bug 41182
Product: UCS
Classification: Unclassified
Component: General
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-15 09:40 CET by Felix Botner
Modified: 2023-03-25 06:42 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2014100221000126
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2018-03-15 09:40:18 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;}'
Comment 1 Daniel Tröder univentionstaff 2018-04-24 17:53:10 CEST
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.
Comment 2 Felix Botner univentionstaff 2018-05-03 18:58:46 CEST
fixed in new horde app

*** This bug has been marked as a duplicate of bug 41182 ***
Comment 3 Dirk Wiesenthal univentionstaff 2018-05-31 15:24:45 CEST
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.