Bug 38461 - Make IMAP special-use folders configurable in Dovecot
Make IMAP special-use folders configurable in Dovecot
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
: 38476 (view as bug list)
Depends on:
Blocks: 34839 38476
  Show dependency treegraph
 
Reported: 2015-05-06 16:03 CEST by Daniel Tröder
Modified: 2015-07-09 18:12 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Daniel Tröder univentionstaff 2015-05-06 16:03:24 CEST
Make auto-creation and auto-subscription of IMAP SPECIAL-USE folders configurable in Dovecot.
By default create & subscribe only to \Junk with name "Spam".

RFC 6154: \All \Archive \Drafts \Flagged \Junk \Sent \Trash
Comment 1 Daniel Tröder univentionstaff 2015-05-14 22:19:25 CEST
*** Bug 38476 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Tröder univentionstaff 2015-05-15 11:30:53 CEST
Commit: 60737

Adds UCRVs:
* mail/dovecot/mailboxes/special/*
* mail/dovecot/mailboxes/auto/*

When installing/updating the special-use tags are assigned to the following folders:

* Drafts → \Drafts
* Junk → \Junk
* Spam → \Junk
* Trash → \Trash
* Sent → \Sent
* 'Sent Messages' → \Sent

By default no folders are autosubscribed.

OX-integration can use this to autocreate+autosubscribe to:
* Spam → \Junk (special-use tag is already set by default, but folder is not created and subscribed to)
* "Gesendete Objekte" → \Sent

by setting

* mail/dovecot/mailboxes/special/Spam="\Junk"
* "mail/dovecot/mailboxes/special/Gesendete Objekte"="\Sent"
* mail/dovecot/mailboxes/auto/Spam=subscribe
* "mail/dovecot/mailboxes/auto/Gesendete Objekte"=subscribe
Comment 3 Daniel Tröder univentionstaff 2015-05-21 14:25:40 CEST
r60821: auto create and subscribe to "Ham" and "Spam" folders in default installation
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-06-22 13:42:16 CEST
Added here, because it is part of the new code:
if UCR variable mail/dovecot/folder/{spam,ham} is set to the empty string, funny things may happen → in cyrus the value "none" disables the spam folder. I think, that the empty value (ucr set mail/dovecot/folder/="" → variable is not unset!) should also disable the spam/ham folder.
Comment 5 Daniel Tröder univentionstaff 2015-06-22 17:47:15 CEST
Commit 61405:
* If the UCRVs are unset or set to "none", no directory will be created. But if they are set, users will automatically be subscribed to them, unless mail/dovecot/mailboxes/auto/<folder>=none.
* mail/dovecot/folder/{spam,ham} are now set in postinst: mail/dovecot/folder/ham?Ham mail/dovecot/folder/spam?Spam
Comment 6 Daniel Tröder univentionstaff 2015-06-23 18:08:22 CEST
Commit 61429 adds more descriptive text for the UCRVs.
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 10:59:47 CEST
(In reply to Daniel Tröder from comment #5)
> Commit 61405:
> * If the UCRVs are unset or set to "none", no directory will be created. But
> if they are set, users will automatically be subscribed to them, unless
> mail/dovecot/mailboxes/auto/<folder>=none.
> * mail/dovecot/folder/{spam,ham} are now set in postinst:
> mail/dovecot/folder/ham?Ham mail/dovecot/folder/spam?Spam

→ REOPEN → please do not use sys.exit() in UCR templates, otherwise the UCR process will not work like expected
Comment 8 Daniel Tröder univentionstaff 2015-07-02 11:57:05 CEST
(In reply to Sönke Schwardt-Krummrich from comment #7)
> → REOPEN → please do not use sys.exit() in UCR templates, otherwise the UCR
> process will not work like expected
fixed in 61657 / 0.0.0-39
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 17:04:09 CEST
OK
Comment 10 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 17:16:09 CEST
Made some fixes in SVN:
r61677 | Bug #38461: updated UCR variable descriptions
Comment 11 Janek Walkenhorst univentionstaff 2015-07-09 18:12:42 CEST
<http://errata.univention.de/ucs/4.0/237.html>