Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix broken (unexecuted) test | Anthony Baxter | 2005-06-08 | 1 | -3/+3 |
| | |||||
* | Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was | Barry Warsaw | 2004-12-05 | 2 | -1/+260 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | RFC 2822 describes the characters allowed in a header field name. Conform to | Barry Warsaw | 2004-11-29 | 1 | -0/+16 |
| | | | | this, and add test cases. | ||||
* | Fix for SF bug #1072623. When the last line of the input string does not end | Barry Warsaw | 2004-11-28 | 1 | -0/+14 |
| | | | | | | | | | in a newline, and it's an end boundary, the FeedParser wasn't recognizing it as such. Tweak the regexp to make the ending linesep optional. For grins, clear self._partial when closing the BufferedSubFile. Added a test case. | ||||
* | test_boundary_with_leading_space(): Test case for SF bug #1060941. RFC 2046 | Barry Warsaw | 2004-11-06 | 1 | -0/+19 |
| | | | | | | says boundaries may begin -- but not end -- with whitespace. I will backport to Python 2.3. | ||||
* | Added a usegmt flag to email.Utils.formatdate - this allows it to be | Anthony Baxter | 2004-10-11 | 1 | -0/+9 |
| | | | | | used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must be the timezone string). | ||||
* | An example message for SF bug # 1030941. | Barry Warsaw | 2004-10-09 | 1 | -0/+20 |
| | |||||
* | test_missing_start_boundary(): A test for SF bug # 1030941. | Barry Warsaw | 2004-10-09 | 1 | -0/+15 |
| | |||||
* | Fix test for FeedParser results. | Barry Warsaw | 2004-10-03 | 1 | -2/+2 |
| | |||||
* | Big email 3.0 API changes, with updated unit tests and documentation. | Barry Warsaw | 2004-10-03 | 3 | -117/+51 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | Test cases and fixes for bugs described in patch #873418: email/Message.py: | Barry Warsaw | 2004-08-16 | 1 | -0/+12 |
| | | | | del_param fails when specifying a header. | ||||
* | Resolution of bug #997368, "strftime() backward compatibility". | Barry Warsaw | 2004-08-07 | 1 | -2/+2 |
| | | | | | | | | | 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 | ||||
* | Resolution of SF bug #1002475 and patch #1003693; Header lines that end in | Barry Warsaw | 2004-08-07 | 1 | -1/+30 |
| | | | | | | | | | | \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. | ||||
* | forward porting from release23-maint | Barry Warsaw | 2004-05-13 | 1 | -0/+10 |
| | |||||
* | test_boundary_in_non_multipart(): Added a test for SF bug # 846938. | Barry Warsaw | 2004-05-13 | 1 | -0/+15 |
| | |||||
* | test_nested_inner_contains_outer_boundary(), test_nested_with_same_boundary(): | Barry Warsaw | 2004-05-13 | 1 | -0/+36 |
| | | | | Two evil samples from Anthony's MIME torture tests. | ||||
* | Another evil test from Anthony's suite. This one has an inner part with the | Barry Warsaw | 2004-05-13 | 1 | -0/+83 |
| | | | | same boundary as the outer part. | ||||
* | A boiled down example from Anthony's MIME torture tests. This one has a | Barry Warsaw | 2004-05-13 | 1 | -0/+101 |
| | | | | separating boundary for an outer part inside an inner part. | ||||
* | More boiled down tests from Anthony's big torture suite. | Barry Warsaw | 2004-05-11 | 1 | -2/+26 |
| | |||||
* | A boiled down message/external-body example from Anthony's torture test. | Barry Warsaw | 2004-05-11 | 1 | -0/+40 |
| | |||||
* | An example with multiple boundary lines. | Barry Warsaw | 2004-05-11 | 1 | -0/+22 |
| | |||||
* | test_mime_attachments_in_constructor(): New test to check for SF bug # 884030. | Barry Warsaw | 2004-05-09 | 1 | -0/+9 |
| | |||||
* | Like msg_12.txt but with some extra vertical whitespace around the inner | Barry Warsaw | 2004-05-09 | 1 | -0/+38 |
| | | | | message's end boundary. | ||||
* | A bunch of new tests, and updated tests for the email 3.0 FeedParser. | Barry Warsaw | 2004-05-09 | 1 | -63/+189 |
| | |||||
* | test_email: comment out two fail-test cases that no longer fail with the new | Thomas Wouters | 2004-03-20 | 1 | -25/+27 |
| | | | | | parser -- for now. Failure behaviour of the new parser(s) will change in any case, so this will be revisited later anyway. | ||||
* | Add CJK codecs support as discussed on python-dev. (SF #873597) | Hye-Shik Chang | 2004-01-17 | 1 | -7/+0 |
| | | | | | Several style fixes are suggested by Martin v. Loewis and Marc-Andre Lemburg. Thanks! | ||||
* | test_get_param_with_semis_in_quotes(): Test case for SF bug #794466. | Barry Warsaw | 2003-09-03 | 1 | -0/+7 |
| | | | | Backport candidate. | ||||
* | test_rfc2231_no_language_or_charset_in_filename(), | Barry Warsaw | 2003-08-19 | 1 | -0/+37 |
| | | | | | | | | | 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. | ||||
* | A couple of new parsedate test cases. | Barry Warsaw | 2003-05-08 | 1 | -0/+10 |
| | |||||
* | Get rid of some hard coded tabs | Barry Warsaw | 2003-04-24 | 1 | -3/+3 |
| | |||||
* | test_whitespace_eater_unicode_2(): Test case for SF bug #710498. | Barry Warsaw | 2003-03-30 | 1 | -0/+9 |
| | |||||
* | test_long_lines_with_different_header(): Another test from Jason. | Barry Warsaw | 2003-03-17 | 1 | -0/+16 |
| | |||||
* | test_getaddresses_nasty(): A test for mimelib SF bug # 697641. | Barry Warsaw | 2003-03-17 | 1 | -0/+10 |
| | |||||
* | test_whitespace_eater_unicode(): Make this test Python 2.1 compatible. | Barry Warsaw | 2003-03-12 | 1 | -1/+4 |
| | |||||
* | Adjust tests for no newline appending to MIMEText.__init__()'s _text | Barry Warsaw | 2003-03-11 | 1 | -2/+0 |
| | | | | argument. | ||||
* | Adjust tests for no newline appending to MIMEText.__init__()'s _text | Barry Warsaw | 2003-03-11 | 1 | -11/+7 |
| | | | | argument. | ||||
* | test_get_decoded_uu_payload(): A new test for | Barry Warsaw | 2003-03-11 | 1 | -0/+11 |
| | | | | Content-Transfer-Encoding: x-uuencode | ||||
* | test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft. | Barry Warsaw | 2003-03-10 | 1 | -0/+8 |
| | |||||
* | Fix base class | Barry Warsaw | 2003-03-10 | 1 | -1/+1 |
| | |||||
* | Use ndiffAssertEqual in a couple of places for better error reporting. | Barry Warsaw | 2003-03-10 | 1 | -3/+6 |
| | |||||
* | test_broken_base64_payload(): Test for crash in low-level binascii | Barry Warsaw | 2003-03-10 | 1 | -0/+8 |
| | | | | module when decoding a message with broken base64. | ||||
* | test_another_long_multiline_header(): Yet another formatting test. | Barry Warsaw | 2003-03-10 | 1 | -0/+12 |
| | |||||
* | test_long_unbreakable_lines_with_continuation(): Another funky example | Barry Warsaw | 2003-03-07 | 1 | -0/+16 |
| | | | | from Jason Mastaler :) | ||||
* | test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out | Barry Warsaw | 2003-03-07 | 1 | -0/+11 |
| | | | | both the charset and language without including any single quotes. | ||||
* | whitespace normalization | Barry Warsaw | 2003-03-07 | 1 | -6/+6 |
| | |||||
* | test_string_headerinst_eq(): Another Jason test :) | Barry Warsaw | 2003-03-07 | 1 | -0/+14 |
| | |||||
* | test_long_received_header(): Another test case for folding long | Barry Warsaw | 2003-03-06 | 1 | -0/+15 |
| | | | | | Received headers (first on semis then on whitespace), given by Jason Mastaler. | ||||
* | test_whitespace_eater_unicode(): Test of the last outstanding bug in | Barry Warsaw | 2003-03-06 | 1 | -0/+8 |
| | | | | SF # 640110. | ||||
* | test_rfc2047_multiline(): Test case for SF bug #640110. | Barry Warsaw | 2003-03-06 | 1 | -0/+14 |
| | |||||
* | Merge of the folding-reimpl-branch. Specific changes, | Barry Warsaw | 2003-03-06 | 2 | -76/+165 |
| | | | | Update tests for email 2.5. |