#35365: Add RFC 3824 Auto-Submitted header to emails by default
---------------------------------+------------------------------------
Reporter: Tobias Bengfort | Owner: nobody
Type: New feature | Status: new
Component: Core (Mail) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by Adam Johnson):
I found very few search results about the header
([https://duckduckgo.com/?t=ffab&q=%22auto-
submitted%22+email+header&ia=web DuckDuckGo],
[https://www.google.com/search?hl=en&q=%22auto%2Dsubmitted%22%20email%20header#ip=1
Google]). Notably, I don’t see any “Email best practices” articles
discussing this header.
But on GitHub code search there are [https://github.com/search?q=%22auto-
submitted%22+%22auto-
generated%22&type=code&repo=&langOverride=&start_value=1 11.4k results]
for `"auto-submitted" "auto-generated"`, among which I found these tools:
* Wagtail since 2018:
https://github.com/wagtail/wagtail/blob/1ec62a6c2d99365886e41c517d386d8d36fa5d50/docs/releases/2.3.rst?plain=1#L39)
* Mastodon sets this header:
https://github.com/mastodon/mastodon/blob/1ad119941ff672b93f2b04dc29f82443349bb69c/app/mailers/application_mailer.rb#L21
* Bugzilla: https://github.com/mozilla-
bteam/bmo/blob/8192fe39ea8b93a7f3bd16fec4807e5d349ce223/Bugzilla/Mailer.pm#L100
It seems reasonable that Django would set it. But there’s some risk since
some search results are people trying to *remove* the header
([https://www.reddit.com/r/techsupport/comments/6sld0g/how_do_stop_my_email_headers_containing/
1], [https://stackoverflow.com/questions/34855722/how-to-remove-header-
auto-submitted-auto-generated-in-exchange-2013 2]). I think we should at
least document a way to opt-out, possibly by subclassing `EmailMessage`
and overriding `message()` to delete the header.
--
Ticket URL: <https://code.djangoproject.com/ticket/35365#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018eedd311d4-44b27fb9-365c-4449-8b08-5aa090fb42a7-000000%40eu-central-1.amazonses.com.