Skip to content

Commit

Permalink
plugins: imapsieve: Deal with messages being expunged concurrently by…
Browse files Browse the repository at this point in the history
… the time Sieve filter is to be applied.

Before, this was an assertion that got triggered transiently during imaptest.
  • Loading branch information
stephanbosch committed Feb 5, 2018
1 parent d5f710e commit a216a29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/imapsieve/imap-sieve-storage.c
Expand Up @@ -747,7 +747,10 @@ imap_sieve_mailbox_transaction_run(
continue;
}

i_assert(!mail->expunged);
if (mail->expunged) {
/* already gone for some reason */
continue;
}

/* Run scripts for this mail */
ret = imap_sieve_run_mail
Expand Down

0 comments on commit a216a29

Please sign in to comment.