dovecot-2.0: mbox: Don't return mailbox GUID if it's coming from...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 15 05:38:45 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/ead16c7d9291
changeset: 10725:ead16c7d9291
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 15 05:10:51 2010 +0200
description:
mbox: Don't return mailbox GUID if it's coming from in-memory index.
diffstat:
src/lib-storage/index/mbox/mbox-storage.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 4fd02780d09f -r ead16c7d9291 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Mon Feb 15 04:46:29 2010 +0200
+++ b/src/lib-storage/index/mbox/mbox-storage.c Mon Feb 15 05:10:51 2010 +0200
@@ -564,6 +564,11 @@
{
struct mbox_mailbox *mbox = (struct mbox_mailbox *)box;
+ if (mail_index_is_in_memory(box->index)) {
+ mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
+ "Mailbox GUIDs are not permanent without index files");
+ return -1;
+ }
memcpy(guid, mbox->mbox_hdr.mailbox_guid, MAIL_GUID_128_SIZE);
return 0;
}
More information about the dovecot-cvs
mailing list