[PATCH 11/13] Log "USER" events after renaming a user's "INBOX" to a new username.
Bron Gondwana
brong at fastmail.fm
Tue Jan 27 23:15:38 EST 2009
From: Bron Gondwana <brong at launde.home.brong.net>
---
imap/imapd.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/imap/imapd.c b/imap/imapd.c
index 8501c34..0bd144a 100644
--- a/imap/imapd.c
+++ b/imap/imapd.c
@@ -5305,6 +5305,13 @@ static int renmbox(char *name,
oldextname, newextname);
sync_log_mailbox_double(name, text->newmailboxname);
+
+ if (text->rename_user) {
+ /* allow the replica to get the correct new quotaroot and acls copied across */
+ sync_log_user(text->newuser);
+ /* allow the replica to clean up the old meta files */
+ sync_log_user(text->olduser);
+ }
}
prot_flush(imapd_out);
--
1.5.6.3
More information about the Cyrus-devel
mailing list