Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #14380: Make actual default match docs, fix __init__ order. | R David Murray | 2012-03-23 | 1 | -7/+9 |
| | | | | | | | | Éric pointed out that given that the default was documented as None, someone would reasonably pass that to get the default behavior. In fixing the code to use None, I noticed that the change to _charset was being done after it had already been passed to MIMENonMultipart. The change to the test verifies that the order is now correct. | ||||
* | #14380: Have MIMEText defaults to utf-8 when passed non-ASCII unicode | R David Murray | 2012-03-23 | 1 | -0/+10 |
| | | | | | | | Previously it would just accept the unicode, which would wind up as unicode in the transfer-encoded message object, which is just wrong. Patch by Jeff Knupp. | ||||
* | #14344: fixed the repr of email.policy objects. | R David Murray | 2012-03-17 | 1 | -1/+1 |
| | |||||
* | Merge #11686: add missing entries to email __all__ lists. | R David Murray | 2012-03-17 | 3 | -2/+3 |
|\ | | | | | | | Original patch by Steffen Daode Nurpmeso | ||||
| * | #11686: add missing entries to email __all__ lists. | R David Murray | 2012-03-17 | 5 | -11/+9 |
| | | | | | | | | Original patch by Steffen Daode Nurpmeso | ||||
* | | #12818: remove escaping of () in quoted strings in formataddr | R David Murray | 2012-03-14 | 1 | -1/+1 |
| | | | | | | | | | | The quoting of ()s inside quoted strings is allowed by the RFC, but is not needed. There seems to be no reason to add needless escapes. | ||||
* | | #14062: fix BytesParser handling of Header objects | R David Murray | 2012-03-14 | 1 | -0/+3 |
|\ \ | |/ | | | | | | | | | This is a different fix than the 3.2 fix, but the new tests are the same. This also affected smtplib.SMTP.send_message, which calls BytesParser. | ||||
| * | #14062: fix BytesParser handling of linesep for Header objects | R David Murray | 2012-03-14 | 2 | -2/+25 |
| | | | | | | | | This also affected smtplib.SMTP.send_message, which calls BytesParser. | ||||
* | | Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8 | R David Murray | 2012-03-14 | 1 | -1/+6 |
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | In Python2, if a unicode string was assigned as the value of a header, email would automatically CTE encode it using the UTF8 charset. This capability was lost in the Python3 translation, and this patch restores it. Patch by Ali Ikinci, assisted by R. David Murray. I also added a fix for the mailbox test that was depending (with a comment that it was a bad idea to so depend) on non-ASCII causing message_from_string to raise an error. It now uses support.patch to induce an error during message serialization. | ||||
| * | #14291: if a header has non-ascii unicode, default to CTE using utf-8 | R David Murray | 2012-03-14 | 2 | -3/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python2, if a unicode string was assigned as the value of a header, email would automatically CTE encode it using the UTF8 charset. This capability was lost in the Python3 translation, and this patch restores it. Patch by Ali Ikinci, assisted by R. David Murray. I also added a fix for the mailbox test that was depending (with a comment that it was a bad idea to so depend) on non-ASCII causing message_from_string to raise an error. It now uses support.patch to induce an error during message serialization. | ||||
* | | Merge 3.2, fix typos. | Florent Xicluna | 2011-11-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix few typos. | Florent Xicluna | 2011-11-11 | 1 | -1/+1 |
| | | |||||
* | | #665194: support roundtripping RFC2822 date stamps in the email.utils module | R David Murray | 2011-07-20 | 2 | -8/+57 |
| | | |||||
* | | #1874: detect invalid multipart CTE and report it as a defect. | R David Murray | 2011-06-22 | 2 | -0/+8 |
| | | |||||
* | | merge #11584: make Header and make_header handle binary unknown-8bit input | R David Murray | 2011-06-18 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | #11584: make Header and make_header handle binary unknown-8bit input | R David Murray | 2011-06-18 | 2 | -1/+19 |
| | | | | | | | | | | | | | | | | Analogous to the decode_header fix, this fix makes Header.append and make_header correctly handle the unknown-8bit charset introduced by email5.1, when the input to them is binary strings. Previous to this fix the make_header(decode_header(x)) == x invariant was broken in the face of the unknown-8bit charset. | ||||
* | | merge #11584: make decode_header handle Header objects correctly | R David Murray | 2011-06-18 | 1 | -2/+3 |
|\ \ | |/ | | | | | | | This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug incorrectly. | ||||
| * | #11584: make decode_header handle Header objects correctly | R David Murray | 2011-06-18 | 2 | -4/+5 |
| | | | | | | | | This updates b21fdfa0019c, which fixed this bug incorrectly. | ||||
* | | #11731: simplify/enhance parser/generator API by introducing policy objects. | R David Murray | 2011-04-18 | 5 | -34/+238 |
| | | | | | | | | | | | | | | | | This new interface will also allow for future planned enhancements in control over the parser/generator without requiring any additional complexity in the parser/generator API. Patch reviewed by Éric Araujo and Barry Warsaw. | ||||
* | | Merge: #11492: rewrite header folding algorithm. Less code, more passing tests. | R David Murray | 2011-04-18 | 1 | -180/+109 |
|\ \ | |/ | |||||
| * | #11492: rewrite header folding algorithm. Less code, more passing tests. | R David Murray | 2011-04-18 | 2 | -197/+241 |
| | | |||||
| * | Improve message.py test coverage to 100%. | R David Murray | 2011-04-16 | 1 | -0/+56 |
| | | | | | | | | | | coverage.py reports 99% on branch coverage, but that appears to be a bug or limitation in coverage.py. | ||||
* | | Remove unused method from internal class. | R David Murray | 2011-04-15 | 1 | -3/+0 |
| | | |||||
* | | #11684: Complete parser bytes interface by adding BytesHeaderParser | R David Murray | 2011-04-13 | 2 | -2/+12 |
| | | | | | | | | Patch by Steffen Daode Nurpmeso. | ||||
* | | Merge with 3.2. | Ezio Melotti | 2011-04-13 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge with 3.1. | Ezio Melotti | 2011-04-13 | 1 | -1/+1 |
| |\ | |||||
| | * | Fix typo in docstring. | Ezio Melotti | 2011-04-13 | 1 | -1/+1 |
| | | | |||||
* | | | Merge: Add maxlinelen to docstring, delete obsolete wording | R David Murray | 2011-04-12 | 1 | -6/+6 |
|\ \ \ | |/ / | |||||
| * | | Merge: Add maxlinelen to docstring, delete obsolete wording | R David Murray | 2011-04-12 | 1 | -6/+6 |
| |\ \ | | |/ | |||||
| | * | Add maxlinelen to docstring, delete obsolete wording | R David Murray | 2011-04-12 | 1 | -6/+6 |
| | | | |||||
* | | | Merge #11492: fix header truncation on folding when there are runs of split ↵ | R David Murray | 2011-04-08 | 1 | -3/+4 |
|\ \ \ | |/ / | | | | | | | | | | | | | chars. Not a complete fix for this issue. | ||||
| * | | Merge #11492: fix header truncation on folding when there are runs of split ↵ | R David Murray | 2011-04-08 | 2 | -3/+14 |
| |\ \ | | |/ | | | | | | | | | | | | | chars. Not a complete fix for this issue. | ||||
| | * | #11492: fix header truncation on folding when there are runs of split chars. | R David Murray | 2011-04-08 | 2 | -3/+14 |
| | | | | | | | | | | | | Not a complete fix for this issue. | ||||
| * | | Merge: Improve test coverage of _split_ascii method. | R David Murray | 2011-04-08 | 1 | -0/+43 |
| |\ \ | | |/ | |||||
| | * | Improve test coverage of _split_ascii method. | R David Murray | 2011-04-08 | 1 | -0/+43 |
| | | | |||||
* | | | #1690608: make formataddr RFC2047 aware. | R David Murray | 2011-04-06 | 1 | -6/+22 |
| | | | | | | | | | | | | Patch by Torsten Becker. | ||||
* | | | Merge #11605: don't use set/get_payload in feedparser; they do conversions. | R David Murray | 2011-04-06 | 1 | -2/+2 |
|\ \ \ | |/ / | |||||
| * | | #11605: don't use set/get_payload in feedparser; they do conversions. | R David Murray | 2011-04-06 | 2 | -2/+49 |
| | | | | | | | | | | | | | | | Really the whole API needs to be gone over to restore the separation of concerns; but that's what email6 is about. | ||||
* | | | Remove the 'strict' argument to Parser, deprecated since 2.4. | R David Murray | 2011-03-29 | 1 | -22/+2 |
| | | | |||||
* | | | Merge #11584: Since __getitem__ returns headers, make decode_header handle them. | R David Murray | 2011-03-25 | 1 | -0/+6 |
|\ \ \ | |/ / | |||||
| * | | #11584: Since __getitem__ returns headers, make decode_header handle them. | R David Murray | 2011-03-25 | 2 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | Why I consider this a bug rather than an API change: the API change was to Message, which didn't used to return Headers unless you added them yourself. Now it does (for 8bit binary header input), so decode_header needs to be able to handle them. | ||||
* | | | Merge #11606: improved body_encode algorithm, no longer produces overlong lines | R David Murray | 2011-03-24 | 1 | -60/+85 |
|\ \ \ | |/ / | |||||
| * | | Merge #11606: improved body_encode algorithm, no longer produces overlong lines | R David Murray | 2011-03-24 | 2 | -61/+103 |
| |\ \ | | |/ | |||||
| | * | #11606: improved body_encode algorithm, no longer produces overlong lines | R David Murray | 2011-03-24 | 2 | -61/+103 |
| | | | | | | | | | | | | Algorithm and initial patch by Michael Henry. | ||||
* | | | Merge #11590: fix quoprimime decode handling of empty strings and line endings. | R David Murray | 2011-03-23 | 1 | -3/+3 |
|\ \ \ | |/ / | |||||
| * | | Merge #11590: fix quoprimime decode handling of empty strings and line endings. | R David Murray | 2011-03-23 | 2 | -3/+18 |
| |\ \ | | |/ | |||||
| | * | #11590: fix quoprimime decode handling of empty strings and line endings. | R David Murray | 2011-03-23 | 2 | -3/+18 |
| | | | |||||
| * | | Merge #11589: add additional tests for the email quoprimime module. | R David Murray | 2011-03-23 | 1 | -14/+178 |
| |\ \ | | |/ | |||||
| | * | #11589: add additional tests for the email quoprimime module. | R David Murray | 2011-03-23 | 1 | -14/+178 |
| | | | | | | | | | | | | Patch by Michael Henry. | ||||
* | | | Correctly move email package tests to Lib/test. | R David Murray | 2011-03-21 | 53 | -6290/+0 |
| | | |