Code

Opened 7 years ago

Closed 7 years ago

#2991 closed enhancement (fixed)

Adding Message-ID header in core/mail.py

Reported by: Graham King <graham@…> Owned by: adrian
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: UI/UX:

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@…> 7 years ago.
svn diff

Download all attachments as: .zip

Change History (2)

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

svn diff

comment:1 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.