Skip to content

Commit a76aaff

Browse files
committed
lazy-expunge: lazy_expunge_mail_is_last_instance() - Don't fail if a backend mailbox was deleted under a virtual one
1 parent b800394 commit a76aaff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/lazy-expunge/lazy-expunge-plugin.c

+2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ static int lazy_expunge_mail_is_last_instance(struct mail *_mail)
202202
/* already expunged - just ignore it */
203203
return 0;
204204
}
205+
if (_mail->box->mailbox_deleted)
206+
return 0;
205207
mail_set_critical(_mail,
206208
"lazy_expunge: Couldn't lookup message's refcount: %s",
207209
errstr);

0 commit comments

Comments
 (0)