dovecot-2.0: dbox: Fixed setting mailbox GUID.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 30 05:04:31 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/be220a26fc5e
changeset: 9553:be220a26fc5e
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 29 21:53:16 2009 -0400
description:
dbox: Fixed setting mailbox GUID.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/dbox/dbox-storage.c | 4 ++--
diffs (21 lines):
diff -r bb260536bdb5 -r be220a26fc5e src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c Mon Jun 29 21:52:42 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-storage.c Mon Jun 29 21:53:16 2009 -0400
@@ -225,7 +225,7 @@ void dbox_update_header(struct dbox_mail
if (update != NULL && !mailbox_guid_is_empty(update->mailbox_guid)) {
memcpy(new_hdr.mailbox_guid, update->mailbox_guid,
sizeof(new_hdr.mailbox_guid));
- } else if (!mailbox_guid_is_empty(new_hdr.mailbox_guid)) {
+ } else if (mailbox_guid_is_empty(new_hdr.mailbox_guid)) {
mail_generate_guid_128(new_hdr.mailbox_guid);
}
@@ -382,7 +382,7 @@ static void dbox_storage_get_status_guid
if (dbox_read_header(mbox, &hdr) < 0)
memset(&hdr, 0, sizeof(hdr));
- if (!mailbox_guid_is_empty(hdr.mailbox_guid)) {
+ if (mailbox_guid_is_empty(hdr.mailbox_guid)) {
/* regenerate it */
if (dbox_write_index_header(box, NULL) < 0 ||
dbox_read_header(mbox, &hdr) < 0)
More information about the dovecot-cvs
mailing list