#9233: EmailMessage.message() duplicates data from extra_headers
------------------------------+---------------------------------------------
 Reporter:  kostaz            |       Owner:  nobody    
   Status:  new               |   Milestone:  post-1.0  
Component:  django.core.mail  |     Version:  1.0       
 Keywords:                    |       Stage:  Unreviewed
Has_patch:  0                 |  
------------------------------+---------------------------------------------
 If I have "Date" and "Message-ID" in extra_headers, the message() method
 of the EmailMessage will first create default ones and then add the ones
 specified in the extra_headers, thus creating duplicates. A proposed
 solution to this is to check if they were specified in extra_headers and
 use those, instead of creating default ones.

 i.e.

 {{{
 if not 'Date' in self.extra_headers:
     msg['Date'] = formatdate()
 if not 'Message-ID' in self.extra_headers:
     msg['Message-ID'] = make_msgid()
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9233>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to