#35365: Add RFC 3834 Auto-Submitted header to emails by default
---------------------------------+------------------------------------
Reporter: Tobias Bengfort | Owner: cgracin
Type: New feature | Status: assigned
Component: Core (Mail) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by David Smith):
Does the header need to be removed entirely? Could we advise folk to set
the header to "no" to disable it?
https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-
keywords.xhtml
The current patch has this to add the header:
{{{
if "Auto-Submitted" not in self.extra_headers:
# Default to adding the Auto-Submitted: auto-generated header
self.extra_headers["Auto-Submitted"] = "auto-generated"
}}}
So could we documentat this by something like...
> By default `EmailMessage` sets the `Auto-Submitted` header to `auto-
generated` to indicate that the mail was created by software rather than a
human. The value of the `Auto-Submitted` header can be customised by the
`headers` option. To disable the header the value of `Auto-Submitted` can
be set to "no".
--
Ticket URL: <https://code.djangoproject.com/ticket/35365#comment:11>
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/0107018f1dc93cce-03289efc-ebb9-4446-b0ef-57ae2bde1fd8-000000%40eu-central-1.amazonses.com.