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

lib-sieve: redirect action: Report errors on original message in act_redirect_commit().

It was errorneously using the (potentially) modified mail struct for error
reporting.
parent 8a8f9c1e
No related branches found
No related tags found
No related merge requests found
...@@ -432,17 +432,17 @@ act_redirect_commit(const struct sieve_action *action, ...@@ -432,17 +432,17 @@ act_redirect_commit(const struct sieve_action *action,
/* Read identifying headers */ /* Read identifying headers */
if (mail_get_first_header(msgdata->mail, "resent-message-id", if (mail_get_first_header(msgdata->mail, "resent-message-id",
&resent_id) < 0) { &resent_id) < 0) {
return sieve_result_mail_error(aenv, mail, return sieve_result_mail_error(aenv, msgdata->mail,
"failed to read header field `resent-message-id'"); "failed to read header field `resent-message-id'");
} }
if (resent_id == NULL && if (resent_id == NULL &&
mail_get_first_header(msgdata->mail, "resent-from", mail_get_first_header(msgdata->mail, "resent-from",
&resent_id) < 0) { &resent_id) < 0) {
return sieve_result_mail_error(aenv, mail, return sieve_result_mail_error(aenv, msgdata->mail,
"failed to read header field `resent-from'"); "failed to read header field `resent-from'");
} }
if (mail_get_first_header(msgdata->mail, "list-id", &list_id) < 0) { if (mail_get_first_header(msgdata->mail, "list-id", &list_id) < 0) {
return sieve_result_mail_error(aenv, mail, return sieve_result_mail_error(aenv, msgdata->mail,
"failed to read header field `list-id'"); "failed to read header field `list-id'");
} }
......
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.