Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #12037: Fix test_email for desktop Windows. | Terry Jan Reedy | 2013-08-31 | 1 | -4/+4 |
|\ | |||||
| * | Issue #12037: Fix test_email for desktop Windows. | Terry Jan Reedy | 2013-08-31 | 1 | -2/+2 |
| | | |||||
* | | Merge #18324: set_payload now correctly handles binary input. | R David Murray | 2013-08-22 | 1 | -0/+36 |
|\ \ | |/ | |||||
| * | #18324: set_payload now correctly handles binary input. | R David Murray | 2013-08-22 | 1 | -0/+36 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | #18741: merge with 3.3. | Ezio Melotti | 2013-08-17 | 1 | -6/+6 |
|\ \ | |/ | |||||
| * | #18741: fix more typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-17 | 1 | -6/+6 |
| | | |||||
* | | #18505: merge with 3.3. | Ezio Melotti | 2013-08-10 | 1 | -4/+1 |
|\ \ | |/ | |||||
| * | #18505: fix duplicate name and remove duplicate test. Patch by Vajrasky Kok. | Ezio Melotti | 2013-08-10 | 1 | -4/+1 |
| | | |||||
* | | #18600: add policy to add_string, and as_bytes and __bytes__ methods. | R David Murray | 2013-08-09 | 1 | -3/+30 |
| | | | | | | | | | | | | | | 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. | ||||
* | | #18503: small cleanups in test_email. | R David Murray | 2013-07-25 | 1 | -2/+2 |
|\ \ | |/ | | | | | Patch by Vajrasky Kok. | ||||
| * | #18503: small cleanups in test_email. | R David Murray | 2013-07-25 | 1 | -2/+2 |
| | | | | | | | | Patch by Vajrasky Kok. | ||||
* | | Merge: Closes #18475: add unittest.main() to test_email/test_inversions. | R David Murray | 2013-07-16 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Closes #18475: add unittest.main() to test_email/test_inversions. | R David Murray | 2013-07-16 | 1 | -0/+4 |
| | | | | | | | | Patch by Vajrasky Kok. | ||||
* | | Merge: Closes #18464: fix typo in test name. | R David Murray | 2013-07-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Closes #18464: fix typo in test name. | R David Murray | 2013-07-15 | 1 | -1/+1 |
| | | |||||
* | | Merge: #18431: Decode encoded words in atoms in new email parser. | R David Murray | 2013-07-12 | 2 | -1/+49 |
|\ \ | |/ | |||||
| * | #18431: Decode encoded words in atoms in new email parser. | R David Murray | 2013-07-12 | 2 | -1/+49 |
| | | | | | | | | | | | | 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 | 3 | -4/+51 |
|\ \ | |/ | |||||
| * | #18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?= | R David Murray | 2013-07-11 | 3 | -4/+51 |
| | | | | | | | | | | | | | | | | | | | | 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 | -0/+4 |
|\ \ | |/ | |||||
| * | #18380: pass regex flags to the right argument. Patch by Valentina ↵ | Ezio Melotti | 2013-07-06 | 1 | -0/+4 |
| | | | | | | | | Mukhamedzhanova. | ||||
* | | Merge #14360: make encoders.encode_quopri work. | R David Murray | 2013-06-27 | 1 | -0/+29 |
|\ \ | |/ | |||||
| * | #14360: make encoders.encode_quopri work. | R David Murray | 2013-06-27 | 1 | -0/+29 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | #17877: merge with 3.3. | Ezio Melotti | 2013-05-08 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | #17877: skip test if the Olson's TZ database is missing. | Ezio Melotti | 2013-05-08 | 1 | -0/+4 |
| | | |||||
* | | Merge: #17431: Fix missing import of BytesFeedParser in email.parser. | R David Murray | 2013-03-16 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Merge: #17431: Fix missing import of BytesFeedParser in email.parser. | R David Murray | 2013-03-16 | 1 | -0/+4 |
| | | |||||
* | | Merge: PEP8 fixup on previous patch, remove unused imports in test_email. | R David Murray | 2013-03-07 | 1 | -5/+1 |
|\ \ | |/ | |||||
| * | Merge: PEP8 fixup on previous patch, remove unused imports in test_email. | R David Murray | 2013-03-07 | 1 | -5/+1 |
| | | |||||
* | | Merge: #14645: Generator now emits correct linesep for all parts. | R David Murray | 2013-03-07 | 1 | -0/+34 |
|\ \ | |/ | | | | | | | | | | | | | | | | | 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 | -0/+34 |
| | | | | | | | | | | | | | | | | | | | | 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: #17171: fix email.encoders.encode_7or8bit when applied to binary data. | R David Murray | 2013-02-11 | 1 | -1/+18 |
|\ \ | |/ | |||||
| * | Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. | R David Murray | 2013-02-11 | 1 | -1/+18 |
| | | |||||
* | | Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. | R David Murray | 2013-02-09 | 1 | -0/+16 |
|\ \ | |/ | |||||
| * | Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. | R David Murray | 2013-02-09 | 1 | -0/+16 |
| | | |||||
* | | Merge: #16948: Fix quopri encoding of non-latin1 character sets. | R David Murray | 2013-02-05 | 1 | -0/+21 |
|\ \ | |/ | |||||
| * | Merge: #16948: Fix quopri encoding of non-latin1 character sets. | R David Murray | 2013-02-05 | 1 | -0/+21 |
| | | |||||
* | | Merge #16811: Fix folding of headers with no value in provisional policies. | R David Murray | 2013-02-04 | 1 | -0/+45 |
|\ \ | |/ | |||||
| * | #16811: Fix folding of headers with no value in provisional policies. | R David Murray | 2013-02-04 | 1 | -0/+45 |
| | | |||||
* | | Merge typo fixes from 3.3. | Ezio Melotti | 2013-01-27 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix a few typos and a double semicolon. Patch by Eitan Adler. | Ezio Melotti | 2013-01-27 | 1 | -1/+1 |
| | | |||||
* | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -1/+1 |
|/ | |||||
* | Close #15165: Fix test_email on Windows 64 bits | Victor Stinner | 2012-11-05 | 1 | -4/+4 |
| | | | | Use year 1990 instead of year 1970 to avoid issues with negative timestamps. | ||||
* | Closes #15925: fix regression in parsedate() and parsedate_tz() that should ↵ | Georg Brandl | 2012-09-22 | 1 | -2/+11 |
| | | | | 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 | -1/+15 |
| | | | | Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen. | ||||
* | Added test for a bug fixed in issue #665194. | Alexander Belopolsky | 2012-08-23 | 1 | -0/+12 |
| | |||||
* | #665194: Update email.utils.localtime to use astimezone, and fix bug. | R David Murray | 2012-08-23 | 1 | -2/+8 |
| | | | | | | | The new code correctly handles historic changes in UTC offsets. A test for this should follow. Original patch by Alexander Belopolsky. | ||||
* | Merge #15232: correctly mangle From lines in MIME preamble and epilogue | R David Murray | 2012-07-23 | 1 | -0/+22 |
| | |||||
* | #15160: Extend the new email parser to handle MIME headers. | R David Murray | 2012-06-24 | 3 | -15/+905 |
| | | | | | | | | | | | | | | | | | | | | | | | This code passes all the same tests that the existing RFC mime header parser passes, plus a bunch of additional ones. There are a couple of commented out tests where there are issues with the folding. The folding doesn't normally get invoked for headers parsed from source, and the cases are marginal anyway (headers with invalid binary data) so I'm not worried about them, but will fix them after the beta. There are things that can be done to make this API even more convenient, but I think this is a solid foundation worth having. And the parser is a full RFC parser, so it handles cases that the current parser doesn't. (There are also probably cases where it fails when the current parser doesn't, but I haven't found them yet ;) Oh, yeah, and there are some really ugly bits in the parser for handling some 'postel' cases that are unfortunately common. I hope/plan to to eventually refactor a lot of the code in the parser which should reduce the line count...but there is no escaping the fact that the error recovery is welter of special cases. | ||||
* | Issue #14653: email.utils.mktime_tz() no longer relies on system | Alexander Belopolsky | 2012-06-22 | 1 | -0/+6 |
| | | | | mktime() when timezone offest is supplied. |