Skip to content

Commit

Permalink
plugins: imap-filter-sieve: Fix useless addition of internal error me…
Browse files Browse the repository at this point in the history
…ssage to FILTER SIEVE errors.
  • Loading branch information
stephanbosch committed Jan 22, 2021
1 parent f043569 commit 552611e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/imap-filter-sieve/imap-filter-sieve.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ int imap_sieve_filter_run_mail(struct imap_filter_sieve_context *sctx,
&msgdata, scriptenv);
} T_END;

if (ret < 0 || str_len(sctx->errors) == 0) {
if (ret < 0 && str_len(sctx->errors) == 0) {
/* Failed, but no user error was logged: log a generic internal
error instead. */
sieve_internal_error(user_ehandler, NULL, NULL);
Expand Down

0 comments on commit 552611e

Please sign in to comment.