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

Enotify: added owner email to auto-submitted header.

parent 084ea434
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ Current:
recipients. Conversely, the generated To header must include the
URI recipients apart from those stated explicitly in the To URI
header.
- Add owner-email to the Auto-submitted field
- Implement checking the :from argument for validity and policy
violations.
* Implement means to configure which extensions to provide and incorporate
......
......@@ -585,7 +585,8 @@ static bool ntfy_mailto_send
rfc2822_header_field_printf(f, "To", "<%s>", recipients[i]);
rfc2822_header_field_write(f, "Subject", subject);
rfc2822_header_field_write(f, "Auto-Submitted", "auto-notified");
rfc2822_header_field_printf(f, "Auto-Submitted",
"auto-notified; owner-email=\"%s\"", msgdata->to_address);
rfc2822_header_field_write(f, "Precedence", "bulk");
/* Set importance */
......@@ -607,9 +608,6 @@ static bool ntfy_mailto_send
/* Add custom headers */
/* FIXME: ignore from and auto-submitted and recognize body, subject, to and
* cc.
*/
headers = array_get(&mtctx->headers, &hcount);
for ( h = 0; h < hcount; h++ ) {
const char *name = rfc2822_header_field_name_sanitize(headers[h].name);
......
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.