Opened 2 years ago
Closed 2 years ago
#34782 closed New feature (wontfix)
Explicit support for In-Reply-To / References in EmailMessage
| Reported by: | David Gilman | Owned by: | nobody | 
|---|---|---|---|
| Component: | Core (Mail) | Version: | dev | 
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
If you want email clients to thread a response you need to set the In-Reply-To and References headers in the email with the Message-ID of the email you're responding to.
Right now, with the EmailMessage class, you can set both directly via the headers= kwarg. However, maybe it is worth an explicit kwarg, like it already has with cc, bcc and reply-to, to save the user the hassle of looking up the relevant RFCs and figuring out what needs to be done. It is a little bit of a weird case in that you have to set two different headers to what is usually the same value.
Thanks for the ticket, however,
headersis the right place to addin-reply-to, we don't want to add extra kwargs for all available headers. This API is generally frozen.