From ea0ab5d5edcd1d0a85f8b177a021b51fefca0047 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 12 Apr 2011 18:41:15 +0300 Subject: [PATCH] sdbox: When rebuilding index, don't unnecessarily change mailbox's GUID. --- src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c b/src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c index 0481f57f6f..0ad8c58eef 100644 --- a/src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c +++ b/src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c @@ -135,7 +135,7 @@ static void sdbox_sync_update_header(struct dbox_sync_rebuild_context *ctx) if (sdbox_read_header(mbox, &hdr, FALSE) < 0) memset(&hdr, 0, sizeof(hdr)); - if (!mail_guid_128_is_empty(hdr.mailbox_guid)) + if (mail_guid_128_is_empty(hdr.mailbox_guid)) mail_generate_guid_128(hdr.mailbox_guid); if (++hdr.rebuild_count == 0) hdr.rebuild_count = 1; -- 2.47.3