Skip to content
Snippets Groups Projects
Commit d083bdab authored by Stephan Bosch's avatar Stephan Bosch
Browse files

plugins: imapsieve: Make temporary failure and corrupt binary errors fatal.

parent dd1e4248
No related branches found
No related tags found
No related merge requests found
...@@ -625,6 +625,7 @@ imap_sieve_handle_exec_status(struct imap_sieve_run *isrun, ...@@ -625,6 +625,7 @@ imap_sieve_handle_exec_status(struct imap_sieve_run *isrun,
"Execution of script %s was aborted " "Execution of script %s was aborted "
"due to temporary failure%s", "due to temporary failure%s",
sieve_script_location(script), userlog_notice); sieve_script_location(script), userlog_notice);
*fatal_r = TRUE;
ret = -1; ret = -1;
break; break;
case SIEVE_EXEC_BIN_CORRUPT: case SIEVE_EXEC_BIN_CORRUPT:
...@@ -632,7 +633,8 @@ imap_sieve_handle_exec_status(struct imap_sieve_run *isrun, ...@@ -632,7 +633,8 @@ imap_sieve_handle_exec_status(struct imap_sieve_run *isrun,
"!!BUG!!: Binary compiled from %s is still corrupt; " "!!BUG!!: Binary compiled from %s is still corrupt; "
"bailing out and reverting to default action", "bailing out and reverting to default action",
sieve_script_location(script)); sieve_script_location(script));
ret = 0; *fatal_r = TRUE;
ret = -1;
break; break;
case SIEVE_EXEC_KEEP_FAILED: case SIEVE_EXEC_KEEP_FAILED:
e_log(sieve_get_event(svinst), log_level, e_log(sieve_get_event(svinst), log_level,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.