#15042: 1.2.4 regression: send_mail doesn't access email recipient with no 
domain
---------------------------------------+------------------------------------
          Reporter:  net147            |         Owner:  lrekucki               
           
            Status:  new               |     Milestone:  1.3                    
           
         Component:  django.core.mail  |       Version:  1.2                    
           
        Resolution:                    |      Keywords:  blocker regression 
send_mail email
             Stage:  Accepted          |     Has_patch:  1                      
           
        Needs_docs:  0                 |   Needs_tests:  0                      
           
Needs_better_patch:  0                 |  
---------------------------------------+------------------------------------
Changes (by lrekucki):

  * has_patch:  0 => 1

Comment:

 The patch contains:

  * Refactored tests for mail handling:
     * {{{MailTests}}} class contains test cases related to EmailMessage
 class that don't depend on any backend.
     * {{{BaseEmailBackendTests}}} contains all other tests that involve
 actually sending any messages.
     * {{{FakeSMTPServer}}} using Python's {{{smptd}}} module for testing
 the SMTP backend. This runs in another thread for the duration of the
 testcase.
  * Correct handling of IDN: all headers that contain email addresses must
 be sanitized properly. Otherwise, the whole header will be encoded as
 "quoted-printable", thus loosing it's structure. I tried sending some
 emails to a localy defined IDN and Postfix treats the value in {{{From:
 =?utf-8?b?ZnLDtm1Aw7bDpMO8LmNvbQ==?=}}} as it was a mailbox name.
  * Some support for non-ASCII characters in local-part of the email
 (they're encoded as they we're before).
  * A fix and a regression test for this issue.

 Note: Backporting to 1.2.X involves moving some code from
 {{{setUpClass/tearDownClass}}} in {{{SMTPBackendTests}}} to
 {{{setUp/tearDown}}}. Should I make a seperate patch ?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15042#comment:3>
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 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to