From f828be2029091ad8d8765783422f8c1c11129298 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 Feb 2013 11:46:14 +0200 Subject: [PATCH] mbox: Fixed mailbox_update() for changing mailbox GUID. --- src/lib-storage/index/mbox/mbox-storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-storage/index/mbox/mbox-storage.c b/src/lib-storage/index/mbox/mbox-storage.c index fe4c613de7..955c71ffaf 100644 --- a/src/lib-storage/index/mbox/mbox-storage.c +++ b/src/lib-storage/index/mbox/mbox-storage.c @@ -498,7 +498,8 @@ mbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) return -1; } - if (update->uid_validity != 0 || update->min_next_uid != 0) { + if (update->uid_validity != 0 || update->min_next_uid != 0 || + !guid_128_is_empty(update->mailbox_guid)) { mbox->sync_hdr_update = update; ret = mbox_sync(mbox, MBOX_SYNC_HEADER | MBOX_SYNC_FORCE_SYNC | MBOX_SYNC_REWRITE); -- 2.47.3