]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual - void virtual_box_copy_error() - Wrap src->mailbox_deleted to MAIL_ERROR_EXP...
authorMarco Bettini <marco.bettini@open-xchange.com>
Thu, 20 Apr 2023 08:25:32 +0000 (08:25 +0000)
committerMarco Bettini <marco.bettini@open-xchange.com>
Fri, 21 Apr 2023 07:11:56 +0000 (07:11 +0000)
src/plugins/virtual/virtual-storage.c

index 4a5314e44709ee0909a1a170fa3485ec1a8e2fb6..dd6b2575bd53d4806e24d264d4f675c91f4e33de 100644 (file)
@@ -66,6 +66,9 @@ void virtual_box_copy_error(struct mailbox *dest, struct mailbox *src)
        str = mailbox_get_last_error(src, &error);
 
        str = t_strdup_printf("%s (for backend mailbox %s)", str, name);
+       if (src->mailbox_deleted)
+               error = MAIL_ERROR_EXPUNGED;
+
        mail_storage_set_error(dest->storage, error, str);
 }