dovecot-2.0-pigeonhole: Fixed error handling of failed mailbox c...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Sat Jun 19 12:32:06 EEST 2010
details: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/d4509075374d
changeset: 1294:d4509075374d
user: Stephan Bosch <stephan at rename-it.nl>
date: Sat Jun 19 11:00:37 2010 +0200
description:
Fixed error handling of failed mailbox creation (patch by Timo Sirainen).
diffstat:
src/lib-sieve/sieve-actions.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 49ef146b2ec1 -r d4509075374d src/lib-sieve/sieve-actions.c
--- a/src/lib-sieve/sieve-actions.c Sat Jun 19 10:57:23 2010 +0200
+++ b/src/lib-sieve/sieve-actions.c Sat Jun 19 11:00:37 2010 +0200
@@ -402,8 +402,10 @@
/* Try creating it. */
if ( mailbox_create(box, NULL, FALSE) < 0 ) {
(void)mail_storage_get_last_error(*storage, &error);
- mailbox_free(&box);
- return NULL;
+ if (error != MAIL_ERROR_EXISTS) {
+ mailbox_free(&box);
+ return NULL;
+ }
}
/* Subscribe to it if required */
More information about the dovecot-cvs
mailing list