1. 16 May, 2015 1 kayıt (commit)
  2. 18 Ock, 2015 1 kayıt (commit)
  3. 20 Eyl, 2014 2 kayıt (commit)
  4. 23 Mar, 2014 1 kayıt (commit)
  5. 06 Mar, 2014 1 kayıt (commit)
  6. 07 Şub, 2014 3 kayıt (commit)
  7. 11 Ara, 2013 2 kayıt (commit)
  8. 03 Kas, 2013 1 kayıt (commit)
  9. 17 Eki, 2013 1 kayıt (commit)
    • R David Murray's avatar
      #18891: Complete new provisional email API. · 3da240fd
      R David Murray yazdı
      This adds EmailMessage and, MIMEPart subclasses of Message
      with new API methods, and a ContentManager class used by
      the new methods.  Also a new policy setting, content_manager.
      
      Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
      and reflects their feedback.
      
      I will ideally add some examples of using the new API to the
      documentation before the final release.
      3da240fd
  10. 22 Agu, 2013 1 kayıt (commit)
    • R David Murray's avatar
      #18324: set_payload now correctly handles binary input. · 00ae435d
      R David Murray yazdı
      This also backs out the previous fixes for for #14360, #1717, and #16564.
      Those bugs were actually caused by the fact that set_payload didn't decode to
      str, thus rendering the model inconsistent.  This fix does mean the data
      processed by the encoder functions goes through an extra encode/decode cycle,
      but it means the model is always consistent.  Future API updates will provide
      a better way to encode payloads, which will bypass this minor de-optimization.
      
      Tests by Vajrasky Kok.
      00ae435d
  11. 09 Agu, 2013 1 kayıt (commit)
  12. 17 Haz, 2012 1 kayıt (commit)
  13. 29 May, 2012 1 kayıt (commit)
    • R David Murray's avatar
      #10839: raise an error on add of duplicate unique headers in new email policies · abfc3749
      R David Murray yazdı
      This feature was supposed to be part of the initial email6 checkin, but it got
      lost in my big refactoring.
      
      In this patch I'm not providing an easy way to turn off the errors, but they
      only happen when a header is added programmatically, and it is almost never
      the right thing to do to allow the duplicate to be added.  An application that
      needs to add duplicates of unique headers can create a policy subclass to
      allow it.
      abfc3749
  14. 28 May, 2012 1 kayıt (commit)
    • R David Murray's avatar
      #1672568: email now registers defects for base64 payload format errors. · 80e0aee9
      R David Murray yazdı
      Which also means that it is now producing *something* for any base64
      payload, which is what leads to the couple of older test changes in
      test_email.  This is a slightly backward incompatible behavior change,
      but the new behavior is so much more useful than the old (you can now
      *reliably* detect errors, and any program that was detecting errors by
      sniffing for a base64 return from get_payload(decode=True) and then doing
      its own error-recovery decode will just get the error-recovery decode
      right away).  So this seems to me to be worth the small risk inherent
      in this behavior change.
      
      This patch also refactors the defect tests into a separate test file,
      since they are no longer just parser tests.
      80e0aee9
  15. 25 May, 2012 1 kayıt (commit)
    • R David Murray's avatar
      #14731: refactor email policy framework. · c27e5226
      R David Murray yazdı
      This patch primarily does two things: (1) it adds some internal-interface
      methods to Policy that allow for Policy to control the parsing and folding of
      headers in such a way that we can construct a backward compatibility policy
      that is 100% compatible with the 3.2 API, while allowing a new policy to
      implement the email6 API.  (2) it adds that backward compatibility policy and
      refactors the test suite so that the only differences between the 3.2
      test_email.py file and the 3.3 test_email.py file is some small changes in
      test framework and the addition of tests for bugs fixed that apply to the 3.2
      API.
      
      There are some additional teaks, such as moving just the code needed for the
      compatibility policy into _policybase, so that the library code can import
      only _policybase.  That way the new code that will be added for email6
      will only get imported when a non-compatibility policy is imported.
      c27e5226
  16. 17 Mar, 2011 1 kayıt (commit)
  17. 15 Mar, 2011 2 kayıt (commit)
  18. 07 Ock, 2011 1 kayıt (commit)
  19. 24 Ara, 2010 1 kayıt (commit)
    • R. David Murray's avatar
      #1693546: don't add quotes around RFC 2231 encoded values. · dfd7eb0b
      R. David Murray yazdı
      The RFC is bit hard to understand on this point, but the examples
      clearly show that parameter values that are encoded according
      to its charset/language rules don't have surrounding quotes, and
      the ABNF does not allow for quotes.  So when we produce such
      encoded values, we no longer add quotes.
      dfd7eb0b
  20. 14 Ara, 2010 1 kayıt (commit)
  21. 13 Ara, 2010 2 kayıt (commit)
  22. 06 Ara, 2010 2 kayıt (commit)
  23. 08 Eki, 2010 1 kayıt (commit)
  24. 01 Eki, 2010 1 kayıt (commit)
  25. 27 Tem, 2010 1 kayıt (commit)
  26. 02 Haz, 2010 2 kayıt (commit)
    • R. David Murray's avatar
      Merged revisions 81658 via svnmerge from · e036af0c
      R. David Murray yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r81658 | r.david.murray | 2010-06-02 18:03:15 -0400 (Wed, 02 Jun 2010) | 9 lines
      
        #1368247: make set_charset/MIMEText automatically encode unicode _payload.
      
        Fixes (mysterious, to the end user) UnicodeErrors when using utf-8 as
        the charset and unicode as the _text argument.  Also makes the way in
        which unicode gets encoded to quoted printable for other charsets more
        sane (it only worked by accident previously).  The _payload now is encoded
        to the charset.output_charset if it is unicode.
      ........
      e036af0c
    • R. David Murray's avatar
      #1368247: make set_charset/MIMEText automatically encode unicode _payload. · 52dcd459
      R. David Murray yazdı
      Fixes (mysterious, to the end user) UnicodeErrors when using utf-8 as
      the charset and unicode as the _text argument.  Also makes the way in
      which unicode gets encoded to quoted printable for other charsets more
      sane (it only worked by accident previously).  The _payload now is encoded
      to the charset.output_charset if it is unicode.
      52dcd459
  27. 14 Nis, 2010 2 kayıt (commit)
  28. 13 Nis, 2010 2 kayıt (commit)
  29. 08 Mar, 2010 1 kayıt (commit)
    • R. David Murray's avatar
      bdecode was already gone in email 5. This merge adds the test from · 57a4b983
      R. David Murray yazdı
      the trunk patch, and removes the last trace of bdecode, which was
      a commented out call in message.py.
      
      Merged revisions 78778 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r78778 | r.david.murray | 2010-03-07 21:04:06 -0500 (Sun, 07 Mar 2010) | 9 lines
      
        Issue #7143: get_payload used to strip any trailing newline from a
        base64 transfer-encoded payload *after* decoding it; it no longer does.
        email had a special method in utils, _bdecode, specifically to do this,
        so it must have served a purpose at some point, yet it is clearly wrong
        per RFC.  Fixed with Barry's approval, but no backport.  Email package
        minor version number is bumped, now version 4.0.1.
      
        Patch by Joaquin Cuenca Abela.
      ........
      57a4b983
  30. 27 Eki, 2009 1 kayıt (commit)