Skip to content

Commit b800394

Browse files
committed
virtual - void virtual_box_copy_error() - Wrap src->mailbox_deleted to MAIL_ERROR_EXPUNGED
1 parent 955bcc4 commit b800394

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/virtual/virtual-storage.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ void virtual_box_copy_error(struct mailbox *dest, struct mailbox *src)
6666
str = mailbox_get_last_error(src, &error);
6767

6868
str = t_strdup_printf("%s (for backend mailbox %s)", str, name);
69+
if (src->mailbox_deleted)
70+
error = MAIL_ERROR_EXPUNGED;
71+
6972
mail_storage_set_error(dest->storage, error, str);
7073
}
7174

0 commit comments

Comments
 (0)