]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual: Include mailbox name in "Backend mailbox added by another session." error.
authorTimo Sirainen <tss@iki.fi>
Mon, 9 Nov 2015 12:49:26 +0000 (14:49 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 9 Nov 2015 12:49:26 +0000 (14:49 +0200)
src/plugins/virtual/virtual-sync.c

index 87b97acec57a423ddc63fb42936233a392e4ce01..479318037fe4aab9c0114fe5244b5adba274d45a 100644 (file)
@@ -134,9 +134,9 @@ virtual_sync_get_backend_box(struct virtual_mailbox *mbox, const char *name,
        /* another process just added a new mailbox.
           we can't handle this currently. */
        mbox->inconsistent = TRUE;
-       mail_storage_set_error(mbox->box.storage, MAIL_ERROR_TEMP,
-               "Backend mailbox added by another session. "
-               "Reopen the virtual mailbox.");
+       mail_storage_set_error(mbox->box.storage, MAIL_ERROR_TEMP, t_strdup_printf(
+               "Backend mailbox '%s' added by another session. "
+               "Reopen the virtual mailbox.", name));
        return -1;
 }