dovecot-2.2: lib-storage: mailbox_delete() now handled "mailbox ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 30 11:37:37 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/2b1c5a96b416
changeset: 17541:2b1c5a96b416
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 30 14:31:47 2014 +0300
description:
lib-storage: mailbox_delete() now handled "mailbox is being deleted" explicitly.
Earlier we just treated it as \NoSelect mailbox and failed later.
diffstat:
src/lib-storage/mail-storage.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 0eee02b75557 -r 2b1c5a96b416 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Mon Jun 30 14:30:43 2014 +0300
+++ b/src/lib-storage/mail-storage.c Mon Jun 30 14:31:47 2014 +0300
@@ -1311,7 +1311,8 @@
box->deleting = TRUE;
if (mailbox_open(box) < 0) {
- if (mailbox_get_last_mail_error(box) != MAIL_ERROR_NOTFOUND)
+ if (mailbox_get_last_mail_error(box) != MAIL_ERROR_NOTFOUND &&
+ !box->mailbox_deleted)
return -1;
/* \noselect mailbox */
}
More information about the dovecot-cvs
mailing list