Bug 38791 - dovecot: behaviour of user listener and shared folder listener upon change of mailPrimaryAddress
dovecot: behaviour of user listener and shared folder listener upon change of...
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
:
Depends on: 38471
Blocks: 34839
  Show dependency treegraph
 
Reported: 2015-06-29 21:58 CEST by Sönke Schwardt-Krummrich
Modified: 2015-07-09 18:15 CEST (History)
1 user (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 Sönke Schwardt-Krummrich univentionstaff 2015-06-29 21:58:19 CEST
If the mail primary address of a user is modified, the behaviour of the listener module depends on 2 UCR variables:

Behaviour of dovecot user listener:
1) mail/dovecot/mailbox/rename=no
   mail/dovecot/mailbox/delete=no
   → new mailbox is created; old mailbox is left untouched
2) mail/dovecot/mailbox/rename=no
   mail/dovecot/mailbox/delete=yes
   → new mailbox is created; old mailbox is removed
3) mail/dovecot/mailbox/rename=yes
   mail/dovecot/mailbox/delete=no
   → existing mailbox gets renamed to new name
4) mail/dovecot/mailbox/rename=yes
   mail/dovecot/mailbox/delete=yes
   → existing mailbox gets renamed to new name

Behaviour of dovecot shared folder listener:
1), 3), 4) also applies to shared folder
Case 2) differs:
  mail/dovecot/mailbox/rename=no
  mail/dovecot/mailbox/delete=yes
  → new mailbox is created; old mailbox is left untouched

I think the behaviour of the 2 listener modules should be consistent.

And I would be okay with case 2) that removes mails without further confirmation if the following requirements are met:
- the current default settings are kept (rename=yes, delete=no)
- the behaviour is clearly stated within the manual
Comment 1 Daniel Tröder univentionstaff 2015-07-03 17:27:12 CEST
Commit 61729: As shared folders cannot be renamed, the listener now ignores mail/dovecot/mailbox/rename.

Commit 61762 explains the possible combinations of settings and their consequences in the manual.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-07-06 14:03:24 CEST
(In reply to Daniel Tröder from comment #1)
> Commit 61729: As shared folders cannot be renamed, the listener now ignores
> mail/dovecot/mailbox/rename.

→ OK
→ 43_dovecot_shared_folder_change_primary_mailaddress has been adopted accordingly

> Commit 61762 explains the possible combinations of settings and their
> consequences in the manual.

→ OK

→ VERIFIED
Comment 3 Janek Walkenhorst univentionstaff 2015-07-09 18:15:30 CEST
<http://errata.univention.de/ucs/4.0/237.html>