Opened 13 years ago

Closed 13 years ago

#2991 closed enhancement (fixed)

Adding Message-ID header in core/

Reported by: Graham King <graham@…> Owned by: Adrian Holovaty
Component: Core (Other) Version:
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


At the moment django.core.mail does not set a Message-ID header in the mails it sends.

SpamAssassin spots this and says INVALID_MSGID and /or MSGID_NO_HOST. With clustered mail servers (Exchange at least) if both members of the cluster receive a message without a message-id, they can think it is the same message and one of the messages will be dropped. I think the Message-ID is also used for message threading. Hence Message-ID is a good thing.

I suggest changing django.core.mail.send_mass_mail to include the attached patch, which adds a Message-ID header according to the format recommended here:

Attachments (1)

django-mail-message-id.diff (703 bytes) - added by Graham King <graham@…> 13 years ago.
svn diff

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Graham King <graham@…>

Attachment: django-mail-message-id.diff added

svn diff

comment:1 Changed 13 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [4051]) Fixed #2991: Added Message-ID header to messages sent from Django. Thanks, Graham King.

Note: See TracTickets for help on using tickets.
Back to Top