1. 14 Nis, 2015 1 kayıt (commit)
  2. 30 Mar, 2015 1 kayıt (commit)
    • R David Murray's avatar
      #23745: handle duplicate MIME parameter names in new parser. · 7d0325d6
      R David Murray yazdı
      This mimics get_param's error handling for the most part.  It is slightly
      better in some regards as get_param can produce some really weird results for
      duplicate *0* parts.  It departs from get_param slightly in that if we have a
      mix of non-extended and extended pieces for the same parameter name, the new
      parser assumes they were all supposed to be extended and concatenates all the
      values, whereas get_param always picks the non-extended parameter value.  All
      of this error recovery is pretty much arbitrary decisions...
      7d0325d6
  3. 26 Ock, 2015 1 kayıt (commit)
  4. 15 Ara, 2014 1 kayıt (commit)
  5. 17 Eki, 2014 1 kayıt (commit)
    • R David Murray's avatar
      #21991: make headerregistry params property MappingProxyType. · 685b3495
      R David Murray yazdı
      It is unlikely anyone is using the fact that the dictionary returned
      by the 'params' attribute was previously writable, but even if someone
      is the API is provisional so this kind of change is acceptable (and
      needed, to get the API "right" before it becomes official).
      
      Patch by Stéphane Wirtel.
      685b3495
  6. 20 Eyl, 2014 2 kayıt (commit)
  7. 12 Agu, 2014 2 kayıt (commit)
  8. 04 Agu, 2014 1 kayıt (commit)
  9. 23 Tem, 2014 1 kayıt (commit)
  10. 26 Haz, 2014 1 kayıt (commit)
  11. 09 Mar, 2014 1 kayıt (commit)
  12. 06 Mar, 2014 1 kayıt (commit)
  13. 08 Şub, 2014 3 kayıt (commit)
    • R David Murray's avatar
      #14983: always add a line end after a MIME boundary marker. · e9c31470
      R David Murray yazdı
      This is more RFC compliant (see issue) and fixes a problem with
      signature verifiers rejecting the part when signed.  There is some
      amount of backward compatibility concern here since it changes
      the output, but the RFC issue coupled with fixing the problem
      with signature verifiers seems worth the small risk of breaking
      code that depends on the current incorrect output.
      e9c31470
    • R David Murray's avatar
      #16983: Apply postel's law to encoded words inside quoted strings. · 0400d339
      R David Murray yazdı
      This applies only to the new parser.  The old parser decodes encoded words
      inside quoted strings already, although it gets the whitespace wrong
      when it does so.
      
      This version of the patch only handles the most common case (a single encoded
      word surrounded by quotes), but I haven't seen any other variations of this in
      the wild yet, so its good enough for now.
      0400d339
    • R David Murray's avatar
      #19772: Do not mutate message when downcoding to 7bit. · 905c8c3d
      R David Murray yazdı
      This is a bit of an ugly hack because of the way generator pieces together the
      output message.  The deepcopys aren't too expensive, though, because we know it
      is only called on messages that are not multiparts, and the payload (the thing
      that could be large) is an immutable object.
      
      Test and preliminary work on patch by Vajrasky Kok.
      905c8c3d
  14. 07 Şub, 2014 4 kayıt (commit)
  15. 13 Ock, 2014 1 kayıt (commit)
    • R David Murray's avatar
      #20206, #5803: more efficient algorithm that doesn't truncate output. · 2313e155
      R David Murray yazdı
      This fixes an edge case (20206) where if the input ended in a character
      needing encoding but there was no newline on the string, the last byte
      of the encoded character would be dropped.  The fix is to use a more
      efficient algorithm, provided by Serhiy Storchaka (5803), that does not
      have the bug.
      2313e155
  16. 23 Ara, 2013 1 kayıt (commit)
  17. 13 Ara, 2013 1 kayıt (commit)
  18. 11 Ara, 2013 2 kayıt (commit)
  19. 16 Kas, 2013 1 kayıt (commit)
  20. 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
  21. 31 Agu, 2013 1 kayıt (commit)
  22. 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
  23. 17 Agu, 2013 1 kayıt (commit)
  24. 10 Agu, 2013 1 kayıt (commit)
  25. 09 Agu, 2013 1 kayıt (commit)
  26. 25 Tem, 2013 1 kayıt (commit)
  27. 16 Tem, 2013 1 kayıt (commit)
  28. 15 Tem, 2013 1 kayıt (commit)
  29. 12 Tem, 2013 1 kayıt (commit)
  30. 11 Tem, 2013 1 kayıt (commit)
    • R David Murray's avatar
      #18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?= · 65171b28
      R David Murray yazdı
      The problem was I was only checking for decimal digits after the third '?',
      not for *hex* digits :(.
      
      This changeset also fixes a couple of comment typos, deletes an unused
      function relating to encoded word parsing, and removed an invalid
      'if' test from the folding function that was revealed by the tests
      written to validate this issue.
      65171b28
  31. 06 Tem, 2013 1 kayıt (commit)
  32. 27 Haz, 2013 1 kayıt (commit)
    • R David Murray's avatar
      #14360: make encoders.encode_quopri work. · f6069f9f
      R David Murray yazdı
      There were no tests for the encoders module.  encode_base64 worked
      because it is the default and so got tested implicitly elsewhere, and
      we use encode_7or8bit internally, so that worked, too.  I previously
      fixed encode_noop, so this fix means that everythign in the encoders
      module now works, hopefully correctly.  Also added an explicit test
      for encode_base64.
      f6069f9f