]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual: If backend mailbox isn't found, don't use NOTFOUND error code.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Apr 2010 23:46:10 +0000 (02:46 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Apr 2010 23:46:10 +0000 (02:46 +0300)
--HG--
branch : HEAD

src/plugins/virtual/virtual-storage.c

index 1108de130e17f15d415fa919407256dcd4b4c83d..76c3e7ddac746dc33d15b036ec9e5bddb5a86e1d 100644 (file)
@@ -147,6 +147,11 @@ static int virtual_backend_box_open_failed(struct virtual_mailbox *mbox,
                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);