dovecot-2.2: virtual: If virtual mailbox has no config file, ass...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 29 18:59:35 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/c120623cb109
changeset: 16891:c120623cb109
user: Timo Sirainen <tss at iki.fi>
date: Tue Oct 29 18:59:20 2013 +0200
description:
virtual: If virtual mailbox has no config file, assume it's just nonexistent.
Most importantly if the virtual namespace root doesn't have the config, it
should fail with MAIL_ERROR_NOTFOUND rather than MAIL_ERROR_NOTPOSSIBLE.
diffstat:
src/plugins/virtual/virtual-config.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r 37ebef9f641f -r c120623cb109 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Tue Oct 29 17:32:42 2013 +0200
+++ b/src/plugins/virtual/virtual-config.c Tue Oct 29 18:59:20 2013 +0200
@@ -356,7 +356,6 @@
{
struct mail_storage *storage = mbox->box.storage;
struct virtual_parse_context ctx;
- struct stat st;
const char *box_path, *path, *line, *error;
unsigned int linenum = 0;
int fd, ret = 0;
@@ -374,9 +373,6 @@
} else if (errno != ENOENT) {
mail_storage_set_critical(storage,
"open(%s) failed: %m", path);
- } else if (stat(box_path, &st) == 0) {
- mail_storage_set_error(storage, MAIL_ERROR_NOTPOSSIBLE,
- "Virtual mailbox missing configuration file");
} else if (errno == ENOENT) {
mail_storage_set_error(storage, MAIL_ERROR_NOTFOUND,
T_MAIL_ERR_MAILBOX_NOT_FOUND(mbox->box.vname));
More information about the dovecot-cvs
mailing list