Skip to content

Commit

Permalink
imapsieve plugin: Fixed assert failure occurring when used with virtu…
Browse files Browse the repository at this point in the history
…al mailboxes.

In that case a transaction (delayed sync) is perfromed outside of the context of an IMAP command.
  • Loading branch information
stephanbosch committed Nov 8, 2016
1 parent be11698 commit 00651e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/imapsieve/imap-sieve-storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ imap_sieve_mailbox_transaction_begin(struct mailbox *box,
/* commence parent transaction */
t = lbox->super.transaction_begin(box, flags);

if (isuser == NULL || isuser->sieve_active)
if (isuser == NULL || isuser->sieve_active ||
isuser->cur_cmd == IMAP_SIEVE_CMD_NONE)
return t;

i_assert(isuser->client != NULL);
Expand Down

0 comments on commit 00651e6

Please sign in to comment.