summaryrefslogtreecommitdiffstats
path: root/Lib/email
Commit message (Collapse)AuthorAgeFilesLines
* get_boundary(): Fix for SF bug #1060941. RFC 2046 says boundaries may beginBarry Warsaw2004-11-061-1/+2
| | | | -- but not end -- with whitespace.
* test_boundary_with_leading_space(): Test case for SF bug #1060941. RFC 2046Barry Warsaw2004-11-061-0/+19
| | | | says boundaries may begin -- but not end -- with whitespace.
* __getitem__(): Fix docstring, SF 979924.Barry Warsaw2004-09-281-1/+1
|
* Test cases and fixes for bugs described in patch #873418: email/Message.py:Barry Warsaw2004-08-162-2/+14
| | | | | | del_param fails when specifying a header. I'll port this to Python 2.4 shortly.
* Added a sample message for the test for SF bug # 846938. I'm naming thisBarry Warsaw2004-05-131-0/+10
| | | | | msg_40.txt because msg_3[6-9].txt are already used in email3/py2.4 and I'm going to forward port this test.
* test_boundary_in_non_multipart(): Added a test for SF bug # 846938.Barry Warsaw2004-05-131-0/+15
|
* _parsebody(): Do not create subparts unless the container has a main type ofBarry Warsaw2004-05-131-7/+8
| | | | | | | | 'multipart' and the boundary is defined. This fixes SF bug # 846938, and several recent email-sig bugs where something like a text/html message also had a boundary parameter. This would later crash the Generator, which only consulted the Content-Type to decide how to generate the message (and it would expect just a string, but find a list there instead).
* Waugh! we need to bump the email package to 2.5.5 for Python 2.3.4.Barry Warsaw2004-05-131-3/+3
|
* test_mime_attachments_in_constructor(): New test to check for SF bug # 884030.Barry Warsaw2004-05-091-0/+9
|
* SF patch # 884030 by Amit Aronovitch; fixes the _subpart argument to matchBarry Warsaw2004-05-091-5/+7
| | | | documented semantics.
* __init__(): The docstring was incorrect regarding how header wrappingBarry Warsaw2003-11-191-5/+4
| | | | | | gets done when maxheaderlen <> 0. The header really gets wrapped via the email.Header.Header class, which has a more sophisticated algorithm than just splitting on semi-colons.
* Backport checkin:Walter Dörwald2003-10-201-1/+1
| | | | | Fix a bunch of typos in documentation, docstrings and comments. (From SF patch #810751)
* test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.Barry Warsaw2003-09-031-0/+7
| | | | Backport candidate.
* A fix for parsing parameters when there are semicolons inside theBarry Warsaw2003-09-031-1/+18
| | | | | | | | | quotes. Fixes SF bug #794466, with the essential patch provided by Stuart D. Gathman. Specifically, _parseparam(), _get_params_preserve(): Use the parsing function that takes quotes into account, as given (essentially) in the bug report's test program.
* Backporting email 2.5.4 fixes from the trunk.Barry Warsaw2003-08-194-9/+51
|
* _make_boundary(): A minor optimization suggested by the Timbot.Barry Warsaw2003-06-241-1/+1
|
* AddressList.__str__(): Get rid of useless, and broken method. ClosesBarry Warsaw2003-06-131-3/+0
| | | | SF #753617. Back port candidate (but low priority).
* get_payload(): Improve the TypeError message when the payload isn't ofBarry Warsaw2003-06-101-1/+1
| | | | the expected type. In response to SF #751451.
* _make_boundary(): Fix for SF bug #745478, broken boundary calculationBarry Warsaw2003-05-292-3/+7
| | | | | | | | | in some locales. This code simplifies the boundary algorithm to use randint() which is what we wanted anyway. Bump package version to 2.5.3. Backport candidate for Python 2.2.3
* Bump version numberBarry Warsaw2003-05-081-1/+1
|
* A couple of new parsedate test cases.Barry Warsaw2003-05-081-0/+10
|
* parsedate_tz(): Be slightly more lenient when there's no day of theBarry Warsaw2003-05-081-3/+2
| | | | | | | week. Patch given by Daniel Berlin in SF bug # 732761. Also closes SF bug # 727719. Backport candidate.
* Get rid of some hard coded tabsBarry Warsaw2003-04-241-3/+3
|
* as_string(): Added some text to the docstring to make it clear thatBarry Warsaw2003-04-181-0/+4
| | | | | it's a convenience only and give hints on what to do for more flexibility.
* Fix a commentBarry Warsaw2003-04-021-1/+1
|
* Bump to version 2.5.1Barry Warsaw2003-03-301-1/+1
|
* test_whitespace_eater_unicode_2(): Test case for SF bug #710498.Barry Warsaw2003-03-301-0/+9
|
* __unicode__(): Fix the logic for calculating whether to add aBarry Warsaw2003-03-301-3/+3
| | | | | separating space or not between encoded chunks. Closes SF bug #710498.
* Temporary bump of the version number.Barry Warsaw2003-03-261-1/+1
|
* typed_subpart_iterator(): Fix these to use non-deprecated APIs,Barry Warsaw2003-03-261-3/+10
| | | | | | i.e. get_content_maintype() and get_content_subtype(). Also, add True, False for Python 2.2.x where x < 2 compatibility.
* typed_subpart_iterator(): Fix these to use non-deprecated APIs,Barry Warsaw2003-03-261-2/+2
| | | | i.e. get_content_maintype() and get_content_subtype().
* Email version 2.5 -- I will now backport this to Python 2.2.3.Barry Warsaw2003-03-211-1/+1
|
* _encode_chunks(): Throw out empty chunks.Barry Warsaw2003-03-171-0/+2
|
* test_long_lines_with_different_header(): Another test from Jason.Barry Warsaw2003-03-171-0/+16
|
* test_getaddresses_nasty(): A test for mimelib SF bug # 697641.Barry Warsaw2003-03-171-0/+10
|
* getaddrlist(): Make sure this consumes all the data, and if there isBarry Warsaw2003-03-171-2/+2
| | | | | | | no address there (perhaps because of invalid characters, it appends ('', '') to the result set. Closes mimelib SF bug # 697641.
* test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.Barry Warsaw2003-03-121-1/+4
|
* Python 2.1 doesn't have True and FalseBarry Warsaw2003-03-121-0/+3
|
* Adjust tests for no newline appending to MIMEText.__init__()'s _textBarry Warsaw2003-03-111-2/+0
| | | | argument.
* beta 1Barry Warsaw2003-03-111-1/+1
|
* Adjust tests for no newline appending to MIMEText.__init__()'s _textBarry Warsaw2003-03-111-11/+7
| | | | argument.
* __init__(): Don't add a newline to _text if it doesn't already end inBarry Warsaw2003-03-111-4/+1
| | | | one. Possibly controversial.
* body_line_iterator(): Accept optional decode argument, pass through toBarry Warsaw2003-03-112-6/+12
| | | | Message.get_payload().
* get_payload(): Teach this about various uunencodedBarry Warsaw2003-03-111-10/+21
| | | | Content-Transfer-Encodings
* test_get_decoded_uu_payload(): A new test forBarry Warsaw2003-03-111-0/+11
| | | | Content-Transfer-Encoding: x-uuencode
* specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points outBarry Warsaw2003-03-101-2/+2
| | | | that backslashes must be escaped in character sets.
* test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.Barry Warsaw2003-03-101-0/+8
|
* _bdecode(): Remove redundant check.Barry Warsaw2003-03-101-2/+0
|
* Fix base classBarry Warsaw2003-03-101-1/+1
|
* Use ndiffAssertEqual in a couple of places for better error reporting.Barry Warsaw2003-03-101-3/+6
|