1. 14 Mar, 2007 1 kayıt (commit)
    • Barry Warsaw's avatar
      SF bug #1582282; decode_header() incorrectly splits not-conformant RFC · 924d148b
      Barry Warsaw yazdı
      2047-like headers where there is no whitespace between encoded words.  This
      fix changes the matching regexp to include a trailing lookahead assertion that
      the closing ?= must be followed by whitespace, newline, or end-of-string.
      This also changes the regexp to add the MULTILINE flag.
      924d148b
  2. 13 Mar, 2007 1 kayıt (commit)
  3. 12 Mar, 2007 1 kayıt (commit)
  4. 26 Tem, 2006 1 kayıt (commit)
  5. 21 Tem, 2006 1 kayıt (commit)
    • Barry Warsaw's avatar
      More RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightly · b110bad2
      Barry Warsaw yazdı
      points out there are really two types of continued headers defined in this
      RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded
      parameters with the form "name*0="), but we were were handling them both the
      same way and that isn't correct.
      
      This patch should be much more RFC compliant in that only encoded params are
      %-decoded and the charset/language information is only extract if there are
      any encoded params in the segments.  If there are no encoded params then the
      RFC says that there will be no charset/language parts.
      
      Note however that this will change the return value for Message.get_param() in
      some cases.  For example, whereas before if you had all unencoded param
      continuations you would have still gotten a 3-tuple back from this method
      (with charset and language == None), you will now get just a string.  I don't
      believe this is a backward incompatible change though because the
      documentation for this method already indicates that either return value is
      possible and that you must do an isinstance(val, tuple) check to discriminate
      between the two.  (Yeah that API kind of sucks but we can't change /that/
      without breaking code.)
      
      Test cases, some documentation updates, and a NEWS item accompany this patch.
      b110bad2
  6. 01 May, 2006 1 kayıt (commit)
    • Barry Warsaw's avatar
      Port forward from 2.4 branch: · dbcc8d9b
      Barry Warsaw yazdı
      Patch #1464708 from William McVey: fixed handling of nested comments in mail
      addresses.  E.g.
      
      "Foo ((Foo Bar)) <foo@example.com>"
      
      Fixes for both rfc822.py and email package.  This patch needs to be back
      ported to Python 2.3 for email 2.5.
      dbcc8d9b
  7. 03 Nis, 2006 1 kayıt (commit)
  8. 18 Mar, 2006 1 kayıt (commit)
  9. 08 Şub, 2006 1 kayıt (commit)
  10. 04 Şub, 2006 1 kayıt (commit)
  11. 03 Şub, 2006 1 kayıt (commit)
  12. 17 Ock, 2006 2 kayıt (commit)
    • Barry Warsaw's avatar
      SF bug #1347874; FeedParser does not comply with RFC2822. · 61532012
      Barry Warsaw yazdı
      Change headerRE as suggested in the bug report, so that single character
      headers are accepted.  Test case added too.  Will backport to Python 2.4.
      61532012
    • Barry Warsaw's avatar
      Ported 42075 from release23-maint branch. · a0f28efc
      Barry Warsaw yazdı
      SF bug #1403349 solution for email 3.0; some MUAs use the 'file' parameter
      name in the Content-Distribution header, so Message.get_filename() should fall
      back to using that.  Will port to the Python 2.5 trunk.
      
      Also, bump the email package version to 3.0.1 for eventual release.  Of
      course, add a test case too.
      
      XXX Need to update the documentation.
      a0f28efc
  13. 08 Haz, 2005 1 kayıt (commit)
  14. 05 Ara, 2004 1 kayıt (commit)
    • Barry Warsaw's avatar
      Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was · 7cf9ce24
      Barry Warsaw yazdı
      caused by a self._input.readline() call that wasn't checking for the
      NeedsMoreData marker.
      
      msg_43.txt contains a message that illustrates the problem, when
      email.message_from_*() is called.  That interface uses the Parser API, which
      splits reads into 8192 byte chunks.  It so happens that for the test message,
      the 8192 chunk falls inside a message/delivery-status, which is where in the
      FeedParser the readline() call was that didn't check for NeedsMoreData.
      
      I also added an assert to unreadline() so it'll be more evident if an attempt
      to push back NeedsMoreData ever happens again.
      
      Bump the email package version number.
      7cf9ce24
  15. 29 Kas, 2004 1 kayıt (commit)
  16. 28 Kas, 2004 1 kayıt (commit)
  17. 06 Kas, 2004 1 kayıt (commit)
  18. 11 Eki, 2004 1 kayıt (commit)
  19. 09 Eki, 2004 1 kayıt (commit)
  20. 03 Eki, 2004 1 kayıt (commit)
    • Barry Warsaw's avatar
      Big email 3.0 API changes, with updated unit tests and documentation. · bb113867
      Barry Warsaw yazdı
      Briefly (from the NEWS file):
      
      - Updates for the email package:
        + All deprecated APIs that in email 2.x issued warnings have been removed:
          _encoder argument to the MIMEText constructor, Message.add_payload(),
          Utils.dump_address_pair(), Utils.decode(), Utils.encode()
        + New deprecations: Generator.__call__(), Message.get_type(),
          Message.get_main_type(), Message.get_subtype(), the 'strict' argument to
          the Parser constructor.  These will be removed in email 3.1.
        + Support for Python earlier than 2.3 has been removed (see PEP 291).
        + All defect classes have been renamed to end in 'Defect'.
        + Some FeedParser fixes; also a MultipartInvariantViolationDefect will be
          added to messages that claim to be multipart but really aren't.
        + Updates to documentation.
      bb113867
  21. 16 Agu, 2004 1 kayıt (commit)
  22. 07 Agu, 2004 2 kayıt (commit)
    • Barry Warsaw's avatar
      Resolution of bug #997368, "strftime() backward compatibility". · e8bedeb4
      Barry Warsaw yazdı
      Specifically, time.strftime() no longer accepts a 0 in the yday position of a
      time tuple, since that can crash some platform strftime() implementations.
      
      parsedate_tz(): Change the return value to return 1 in the yday position.
      
      Update tests in test_rfc822.py and test_email.py
      e8bedeb4
    • Barry Warsaw's avatar
      Resolution of SF bug #1002475 and patch #1003693; Header lines that end in · 8896bf56
      Barry Warsaw yazdı
      \r\n only get the \n stripped, not the \r (unless it's the last header which
      does get the \r stripped).  Patch by Tony Meyer.
      
      test_whitespace_continuation_last_header(),
      test_strip_line_feed_and_carriage_return_in_headers(): New tests.
      
      _parse_headers(): Be sure to strip \r\n from the right side of header lines.
      8896bf56
  23. 13 May, 2004 2 kayıt (commit)
  24. 11 May, 2004 1 kayıt (commit)
  25. 09 May, 2004 2 kayıt (commit)
  26. 20 Mar, 2004 1 kayıt (commit)
  27. 03 Eyl, 2003 1 kayıt (commit)
  28. 19 Agu, 2003 1 kayıt (commit)
    • Barry Warsaw's avatar
      test_rfc2231_no_language_or_charset_in_filename(), · 622d60b5
      Barry Warsaw yazdı
      test_rfc2231_no_language_or_charset_in_boundary(),
      test_rfc2231_no_language_or_charset_in_charset(): New tests for proper
      decoding of some RFC 2231 headers.
      
      Backport candidate (as was the Utils.py 1.25 change) to both Python
      2.3.1 and 2.2.4 -- will do momentarily.
      622d60b5
  29. 08 May, 2003 1 kayıt (commit)
  30. 24 Nis, 2003 1 kayıt (commit)
  31. 30 Mar, 2003 1 kayıt (commit)
  32. 17 Mar, 2003 2 kayıt (commit)
  33. 12 Mar, 2003 1 kayıt (commit)
  34. 11 Mar, 2003 2 kayıt (commit)