dovecot-2.0: virtual: If backend mailbox isn't found, don't use ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 8 02:46:14 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/a1b18a7c829f
changeset: 11112:a1b18a7c829f
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 08 02:46:10 2010 +0300
description:
virtual: If backend mailbox isn't found, don't use NOTFOUND error code.
diffstat:
src/plugins/virtual/virtual-storage.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 09ecf24a798b -r a1b18a7c829f src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c Thu Apr 08 02:45:23 2010 +0300
+++ b/src/plugins/virtual/virtual-storage.c Thu Apr 08 02:46:10 2010 +0300
@@ -147,6 +147,11 @@
return 0;
}
+ if (error == MAIL_ERROR_NOTFOUND) {
+ /* the virtual mailbox exists, we just can't open it.
+ change the error type. */
+ error = MAIL_ERROR_NOTPOSSIBLE;
+ }
str = t_strdup_printf(
"Virtual mailbox open failed because of mailbox %s: %s",
name, str);
More information about the dovecot-cvs
mailing list