1. 10 Eyl, 2016 1 kayıt (commit)
    • R David Murray's avatar
      #20476: Deal with the message_factory circular import differently. · b067c8fd
      R David Murray yazdı
      It turns out we can't depend on email.message getting imported every place
      message_factory is needed, so to avoid a circular import we need to special
      case Policy.message_factory=None in the parser instead of using monkey
      patching.  I had a feeling that was a bad idea when I did it.
      b067c8fd
  2. 09 Eyl, 2016 1 kayıt (commit)
  3. 07 Eyl, 2016 1 kayıt (commit)
  4. 08 Eyl, 2016 1 kayıt (commit)
  5. 16 Tem, 2016 1 kayıt (commit)
  6. 23 May, 2015 1 kayıt (commit)
  7. 26 Ock, 2015 1 kayıt (commit)
  8. 12 Agu, 2014 1 kayıt (commit)
  9. 07 Şub, 2014 1 kayıt (commit)
  10. 14 Şub, 2013 1 kayıt (commit)
  11. 18 Ara, 2012 2 kayıt (commit)
  12. 28 May, 2012 2 kayıt (commit)
  13. 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
  14. 17 Mar, 2012 1 kayıt (commit)
  15. 22 Haz, 2011 1 kayıt (commit)
  16. 18 Nis, 2011 1 kayıt (commit)
  17. 15 Nis, 2011 1 kayıt (commit)
  18. 06 Nis, 2011 1 kayıt (commit)
  19. 08 Eki, 2010 1 kayıt (commit)
  20. 17 Tem, 2010 4 kayıt (commit)
  21. 16 Haz, 2010 3 kayıt (commit)
    • R. David Murray's avatar
      Merged revisions 82011 via svnmerge from · 71df9d92
      R. David Murray yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/py3k
      
      ................
        r82011 | r.david.murray | 2010-06-15 22:19:40 -0400 (Tue, 15 Jun 2010) | 17 lines
      
        Merged revisions 81675 via svnmerge from
        svn+ssh://pythondev@svn.python.org/python/trunk
      
        ........
          r81675 | r.david.murray | 2010-06-03 11:43:20 -0400 (Thu, 03 Jun 2010) | 10 lines
      
          #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.
      
          If a body part ended with \r\n, feedparser, using '$' to terminate its
          search for the newline, would match on the \r\n, and think that it needed
          to strip two characters in order to account for the line end before the
          boundary.  That made it chop one too many characters off the end of
          the body part.  Using \Z makes the match correct.
      
          Patch and test by Tony Nelson.
        ........
      ................
      71df9d92
    • R. David Murray's avatar
      Merged revisions 81675 via svnmerge from · 45e0e144
      R. David Murray yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r81675 | r.david.murray | 2010-06-03 11:43:20 -0400 (Thu, 03 Jun 2010) | 10 lines
      
        #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.
      
        If a body part ended with \r\n, feedparser, using '$' to terminate its
        search for the newline, would match on the \r\n, and think that it needed
        to strip two characters in order to account for the line end before the
        boundary.  That made it chop one too many characters off the end of
        the body part.  Using \Z makes the match correct.
      
        Patch and test by Tony Nelson.
      ........
      45e0e144
    • R. David Murray's avatar
      Merged revisions 81675 via svnmerge from · ff4a01df
      R. David Murray yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r81675 | r.david.murray | 2010-06-03 11:43:20 -0400 (Thu, 03 Jun 2010) | 10 lines
      
        #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.
      
        If a body part ended with \r\n, feedparser, using '$' to terminate its
        search for the newline, would match on the \r\n, and think that it needed
        to strip two characters in order to account for the line end before the
        boundary.  That made it chop one too many characters off the end of
        the body part.  Using \Z makes the match correct.
      
        Patch and test by Tony Nelson.
      ........
      ff4a01df
  22. 03 Haz, 2010 1 kayıt (commit)
    • R. David Murray's avatar
      #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n. · 61746d58
      R. David Murray yazdı
      If a body part ended with \r\n, feedparser, using '$' to terminate its
      search for the newline, would match on the \r\n, and think that it needed
      to strip two characters in order to account for the line end before the
      boundary.  That made it chop one too many characters off the end of
      the body part.  Using \Z makes the match correct.
      
      Patch and test by Tony Nelson.
      61746d58
  23. 16 Eki, 2007 1 kayıt (commit)
  24. 30 Agu, 2007 1 kayıt (commit)
  25. 25 Agu, 2007 1 kayıt (commit)
  26. 21 Nis, 2007 1 kayıt (commit)
  27. 21 Nis, 2006 1 kayıt (commit)
  28. 18 Mar, 2006 1 kayıt (commit)
  29. 17 Ock, 2006 1 kayıt (commit)
  30. 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
  31. 29 Kas, 2004 1 kayıt (commit)
  32. 28 Kas, 2004 1 kayıt (commit)
  33. 09 Eki, 2004 1 kayıt (commit)
    • Barry Warsaw's avatar
      Fix SF bug # 1030941. In _parsegen(), in the clause where we're · dee0cf12
      Barry Warsaw yazdı
      capturing_preamble but we found a StartBoundaryNotFoundDefect, we need to
      consume all lines from the current position to the EOF, which we'll set as the
      epilogue of the current message.  If we're not at EOF when we return from
      here, the outer message's capturing_preamble assertion will fail.
      dee0cf12