Skip to content

Commit

Permalink
lib-sieve: Never return TRUE from sieve_multiscript_will_discard() wh…
Browse files Browse the repository at this point in the history
…en status is not successful.

Errors will trigger an implicit keep, not discard.
  • Loading branch information
stephanbosch committed Apr 10, 2018
1 parent 61b4782 commit 7979e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-sieve/sieve.c
Expand Up @@ -730,7 +730,7 @@ bool sieve_multiscript_run
bool sieve_multiscript_will_discard
(struct sieve_multiscript *mscript)
{
return ( !mscript->active &&
return ( !mscript->active && mscript->status == SIEVE_EXEC_OK &&
!sieve_result_executed_delivery(mscript->result) );
}

Expand Down

0 comments on commit 7979e10

Please sign in to comment.