Opened 18 years ago

Closed 18 years ago

#2991 closed enhancement (fixed)

Adding Message-ID header in core/mail.py

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

Description

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:

http://www.jwz.org/doc/mid.html

http://rfc.sunsite.dk/rfc/rfc822.html

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

by Graham King <graham@…>, 18 years ago

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

svn diff

comment:1 by Jacob, 18 years ago

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