Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #18324: set_payload now correctly handles binary input. | R David Murray | 2013-08-22 | 2 | -16/+6 |
|\ | |||||
| * | #18324: set_payload now correctly handles binary input. | R David Murray | 2013-08-22 | 2 | -16/+6 |
| | | | | | | | | | | | | | | | | | | | | | | This also backs out the previous fixes for for #14360, #1717, and #16564. Those bugs were actually caused by the fact that set_payload didn't decode to str, thus rendering the model inconsistent. This fix does mean the data processed by the encoder functions goes through an extra encode/decode cycle, but it means the model is always consistent. Future API updates will provide a better way to encode payloads, which will bypass this minor de-optimization. Tests by Vajrasky Kok. | ||||
* | | Merge typo fixes from 3.3. | Ezio Melotti | 2013-08-10 | 2 | -4/+4 |
|\ \ | |/ | |||||
| * | Fix a couple of typos. | Ezio Melotti | 2013-08-10 | 2 | -4/+4 |
| | | |||||
* | | #18600: add policy to add_string, and as_bytes and __bytes__ methods. | R David Murray | 2013-08-09 | 1 | -8/+36 |
| | | | | | | | | | | | | | | This was triggered by wanting to make the doctest in email.policy.rst pass; as_bytes and __bytes__ are clearly useful now that we have BytesGenerator. Also updated the Message docs to document the policy keyword that was added in 3.3. | ||||
* | | Merge: #18437: fix comment typo. | R David Murray | 2013-07-13 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #18437: fix comment typo. | R David Murray | 2013-07-13 | 1 | -1/+1 |
| | | |||||
* | | Merge: #18431: Decode encoded words in atoms in new email parser. | R David Murray | 2013-07-12 | 1 | -2/+21 |
|\ \ | |/ | |||||
| * | #18431: Decode encoded words in atoms in new email parser. | R David Murray | 2013-07-12 | 1 | -2/+21 |
| | | | | | | | | | | | | There is more to be done here in terms of accepting RFC invalid input that some mailers accept, but this covers the valid RFC places where encoded words can occur in structured headers. | ||||
* | | Merge: #18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?= | R David Murray | 2013-07-11 | 1 | -36/+7 |
|\ \ | |/ | |||||
| * | #18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?= | R David Murray | 2013-07-11 | 1 | -36/+7 |
| | | | | | | | | | | | | | | | | | | | | The problem was I was only checking for decimal digits after the third '?', not for *hex* digits :(. This changeset also fixes a couple of comment typos, deletes an unused function relating to encoded word parsing, and removed an invalid 'if' test from the folding function that was revealed by the tests written to validate this issue. | ||||
* | | #18380: merge with 3.3. | Ezio Melotti | 2013-07-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #18380: pass regex flags to the right argument. Patch by Valentina ↵ | Ezio Melotti | 2013-07-06 | 1 | -1/+1 |
| | | | | | | | | Mukhamedzhanova. | ||||
* | | Merge #14360: make encoders.encode_quopri work. | R David Murray | 2013-06-27 | 1 | -2/+6 |
|\ \ | |/ | |||||
| * | #14360: make encoders.encode_quopri work. | R David Murray | 2013-06-27 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | There were no tests for the encoders module. encode_base64 worked because it is the default and so got tested implicitly elsewhere, and we use encode_7or8bit internally, so that worked, too. I previously fixed encode_noop, so this fix means that everythign in the encoders module now works, hopefully correctly. Also added an explicit test for encode_base64. | ||||
* | | #11454: Reduce email module load time, improve surrogate check efficiency. | R David Murray | 2013-06-26 | 1 | -4/+10 |
| | | | | | | | | | | | | | | The new _has_surrogates code was suggested by Serhiy Storchaka. See the issue for timings, but it is far faster than any other alternative, and also removes the load time that we previously incurred from compiling the complex regex this replaces. | ||||
* | | Issue #17516: use comment syntax for comments, instead of multiline string | Victor Stinner | 2013-03-26 | 1 | -18/+16 |
| | | |||||
* | | Add missing FeedParser and BytesFeedParser to email.parser.__all__. | R David Murray | 2013-03-16 | 1 | -1/+2 |
| | | |||||
* | | Merge: #17431: Fix missing import of BytesFeedParser in email.parser. | R David Murray | 2013-03-16 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge: #17431: Fix missing import of BytesFeedParser in email.parser. | R David Murray | 2013-03-16 | 1 | -1/+1 |
| |\ | |||||
| | * | #17431: Fix missing import of BytesFeedParser in email.parser. | R David Murray | 2013-03-16 | 2 | -1/+5 |
| | | | | | | | | | | | | Initial patch contributed by Edmond Burnett. | ||||
* | | | Merge with 3.3, issue #17047: remove doubled words added in 3.3, | Terry Jan Reedy | 2013-03-11 | 4 | -4/+4 |
|\ \ \ | |/ / | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
| * | | Issue #17047: remove doubled words added in 3.3 | Terry Jan Reedy | 2013-03-11 | 4 | -4/+4 |
| | | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
* | | | Merge: PEP8 fixup on previous patch, remove unused imports in test_email. | R David Murray | 2013-03-07 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Merge: PEP8 fixup on previous patch, remove unused imports in test_email. | R David Murray | 2013-03-07 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | PEP8 fixup on previous patch, remove unused import in test_email. | R David Murray | 2013-03-07 | 2 | -2/+1 |
| | | | |||||
* | | | Merge: #14645: Generator now emits correct linesep for all parts. | R David Murray | 2013-03-07 | 1 | -4/+18 |
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | Previously the parts of the message retained whatever linesep they had on read, which means if the messages weren't read in univeral newline mode, the line endings could well be inconsistent. In general sending it via smtplib would result in them getting fixed, but it is better to generate them correctly to begin with. Also, the new send_message method of smtplib does not do the fixup, so that method is producing rfc-invalid output without this fix. | ||||
| * | | Merge: #14645: Generator now emits correct linesep for all parts. | R David Murray | 2013-03-07 | 1 | -4/+18 |
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | Previously the parts of the message retained whatever linesep they had on read, which means if the messages weren't read in univeral newline mode, the line endings could well be inconsistent. In general sending it via smtplib would result in them getting fixed, but it is better to generate them correctly to begin with. Also, the new send_message method of smtplib does not do the fixup, so that method is producing rfc-invalid output without this fix. | ||||
| | * | #14645: Generator now emits correct linesep for all parts. | R David Murray | 2013-03-07 | 2 | -4/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the parts of the message retained whatever linesep they had on read, which means if the messages weren't read in univeral newline mode, the line endings could well be inconsistent. In general sending it via smtplib would result in them getting fixed, but it is better to generate them correctly to begin with. Also, the new send_message method of smtplib does not do the fixup, so that method is producing rfc-invalid output without this fix. | ||||
* | | | #15220: simplify and speed up feedparser's line splitting. | R David Murray | 2013-02-14 | 1 | -18/+9 |
| | | | | | | | | | | | | | | | Original patch submitted by QNX, modified for clarity by me (mostly comments). QNX reports a 30% speed up in average email parsing time. | ||||
* | | | Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. | R David Murray | 2013-02-11 | 1 | -1/+3 |
|\ \ \ | |/ / | |||||
| * | | Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. | R David Murray | 2013-02-11 | 1 | -1/+3 |
| |\ \ | | |/ | |||||
| | * | #17171: fix email.encoders.encode_7or8bit when applied to binary data. | R David Murray | 2013-02-11 | 2 | -2/+21 |
| | | | |||||
* | | | Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. | R David Murray | 2013-02-09 | 2 | -0/+9 |
|\ \ \ | |/ / | |||||
| * | | Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. | R David Murray | 2013-02-09 | 2 | -0/+9 |
| |\ \ | | |/ | |||||
| | * | #16564: Fix regression in use of encoders.encode_noop with binary data. | R David Murray | 2013-02-09 | 3 | -0/+25 |
| | | | |||||
* | | | Merge: #16948: Fix quopri encoding of non-latin1 character sets. | R David Murray | 2013-02-05 | 1 | -0/+13 |
|\ \ \ | |/ / | |||||
| * | | Merge: #16948: Fix quopri encoding of non-latin1 character sets. | R David Murray | 2013-02-05 | 1 | -0/+13 |
| |\ \ | | |/ | |||||
| | * | #16948: Fix quopri encoding of non-latin1 character sets. | R David Murray | 2013-02-05 | 2 | -0/+34 |
| | | | |||||
* | | | Merge #16811: Fix folding of headers with no value in provisional policies. | R David Murray | 2013-02-04 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | #16811: Fix folding of headers with no value in provisional policies. | R David Murray | 2013-02-04 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 3 | -4/+4 |
|\ \ \ | |/ / | | | | | | | Patch by Serhiy Storchaka. | ||||
| * | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 3 | -4/+4 |
| |\ \ | | |/ | | | | | | | Patch by Serhiy Storchaka. | ||||
| | * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 2 | -3/+3 |
| | | | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | | utilize yield from | Philip Jenvey | 2012-10-01 | 2 | -6/+3 |
|/ / | |||||
* | | Closes #15925: fix regression in parsedate() and parsedate_tz() that should ↵ | Georg Brandl | 2012-09-22 | 2 | -22/+6 |
| | | | | | | | | return None if unable to parse the argument. | ||||
* | | Merge #15249: Mangle From lines correctly when body contains invalid bytes. | R David Murray | 2012-08-24 | 1 | -0/+2 |
|\ \ | |/ | | | | | Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen. | ||||
| * | #15249: Mangle From lines correctly when body contains invalid bytes. | R David Murray | 2012-08-24 | 2 | -1/+17 |
| | | | | | | | | Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen. | ||||
* | | Issue #665194: Added a small optimization | Alexander Belopolsky | 2012-08-23 | 1 | -1/+1 |
| | | |||||
* | | #665194: fix variable name in exception code path. | R David Murray | 2012-08-23 | 1 | -1/+1 |
| | | | | | | | | | | It was correct in the original patch and I foobared it when I restructured part of the code. |