| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [3.5] bpo-37461: Fix infinite loop in parsing of specially crafted email ↵ | Abhilash Raj | 2019-09-07 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | headers (GH-14794) (#15446) * [3.5] bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794) Some crafted email header would cause the get_parameter method to run in an infinite loop causing a DoS attack surface when parsing those headers. This patch fixes that by making sure the DQUOTE character is handled to prevent going into an infinite loop. (cherry picked from commit a4a994bd3e619cbaff97610a1cee8ffa87c672f5) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com> Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com> | ||||
| * | [3.5] bpo-34155: Dont parse domains containing @ (GH-13079) (#15317) | Abhilash Raj | 2019-09-07 | 2 | -0/+24 |
| | | | | | | | https://bugs.python.org/issue34155 (cherry picked from commit 8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9) Co-authored-by: jpic <jpic@users.noreply.github.com> | ||||
| * | bpo-30532: Fix whitespace folding in certain cases (#2592) | Joel Hillacre | 2017-07-06 | 1 | -0/+12 |
| | | | | Leading whitespace was incorrectly dropped during folding of certain lines in the _header_value_parser's folding algorithm. This makes the whitespace handling code consistent. | ||||
| * | [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy ↵ | Mariatta | 2017-06-16 | 1 | -0/+7 |
| | | | | | | | | (GH-595) (GH-2234) If max_line_length=None is specified while using the Compat32 policy, it is no longer ignored.. (cherry picked from commit b459f7482612d340b88b62edc024628595ec6337) | ||||
| * | #28407 Improve test coverage of make_msgid. | R David Murray | 2016-12-18 | 1 | -0/+12 |
| | | | | | Patch by Dillon Brock. | ||||
| * | #19003: Only replace \r and/or \n line endings in email.generator. | R David Murray | 2016-09-11 | 1 | -0/+12 |
| | | | | | | This is a further restoration of backward compatibility, as well as being correct per the RFCs. | ||||
| * | #28047: Fix calculation of base64 line length. | R David Murray | 2016-09-09 | 2 | -3/+32 |
| | | | | | | This is buggy in the old email code as well, but it doesn't affect anything there because only the default line length is ever used there. | ||||
| * | Issue #27445: Don't pass str(_charset) to MIMEText.set_payload() | Berker Peksag | 2016-09-08 | 1 | -1/+4 |
| | | | | | Patch by Claude Paroz. | ||||
| * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -2/+2 |
| | | |||||
| * | #22233: Only split headers on \r and/or \n, per email RFCs. | R David Murray | 2016-09-07 | 2 | -2/+45 |
| | | | | | Original patch by Martin Panter, new policy fixes by me. | ||||
| * | 27988: Make sure iter_attachments does not mutate the payload list. | R David Murray | 2016-09-07 | 1 | -0/+10 |
| | | |||||
| * | Correct misspellings of ISO-8859 | Martin Panter | 2016-08-10 | 1 | -2/+2 |
| | | |||||
| * | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | | |||||
| * | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 2 | -2/+2 |
| | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
| * | Issue 26912: fix broken imports in test_email package. | Terry Jan Reedy | 2016-05-06 | 2 | -12/+9 |
| | | |||||
| * | Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. | Serhiy Storchaka | 2015-11-10 | 1 | -1/+1 |
| |\ | | | | | | | Use time.monotonic instead of time.clock. | ||||
| | * | Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. | Serhiy Storchaka | 2015-11-10 | 1 | -1/+4 |
| | | | | | | | | | Use time.monotonic or time.time instead of time.clock. | ||||
| * | | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
| * | | Merge 3.4 (test_email) | Victor Stinner | 2015-09-18 | 1 | -0/+3 |
| |\ \ | |/ | |||||
| | * | Issue #24836: Skip FormatDateTests of test_email.test_utils on Mac OS X Snow | Victor Stinner | 2015-09-18 | 1 | -0/+3 |
| | | | | | | | | | Leopard because this OS uses out of date (pre 2011k) timezone files. | ||||
| * | | Issue #22932: Fix timezones in email.utils.formatdate. | Robert Collins | 2015-07-31 | 1 | -0/+20 |
| |\ \ | |/ | | | | | Patch from Dmitry Shachnev. | ||||
| | * | Issue #22932: Fix timezones in email.utils.formatdate. | Robert Collins | 2015-07-31 | 1 | -0/+20 |
| | | | | | | | | | Patch from Dmitry Shachnev. | ||||
| * | | Issue #6598: Increased time precision and random number range in | Serhiy Storchaka | 2015-05-19 | 1 | -1/+24 |
| |\ \ | |/ | | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID. | ||||
| | * | Issue #6598: Increased time precision and random number range in | Serhiy Storchaka | 2015-05-19 | 1 | -1/+24 |
| | | | | | | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID. | ||||
| * | | #20098: add mangle_from_ policy option. | R David Murray | 2015-05-17 | 2 | -0/+24 |
| | | | | | | | | | | | | | | | This defaults to True in the compat32 policy for backward compatibility, but to False for all new policies. Patch by Milan Oberkirch, with a few tweaks. | ||||
| * | | #24211: Add RFC6532 support to the email library. | R David Murray | 2015-05-17 | 2 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | This could use more edge case tests, but the basic functionality is tested. (Note that this changeset does not add tailored support for the RFC 6532 message/global MIME type, but the email package generic facilities will handle it.) Reviewed by Maciej Szulik. | ||||
| * | | #21083: add get_content_disposition method to email.message. | R David Murray | 2015-05-16 | 1 | -0/+11 |
| | | | | | | | | | Patch by Abhilash Raj. | ||||
| * | | Issue #23943: Fix typos. Patch by Piotr Kasprzyk. | Berker Peksag | 2015-04-14 | 1 | -1/+1 |
| |\ \ | |/ | |||||
| | * | Issue #23943: Fix typos. Patch by Piotr Kasprzyk. | Berker Peksag | 2015-04-14 | 1 | -1/+1 |
| | | | |||||
| * | | Merge: #23745: handle duplicate MIME parameter names in new parser. | R David Murray | 2015-03-30 | 1 | -0/+109 |
| |\ \ | |/ | |||||
| | * | #23745: handle duplicate MIME parameter names in new parser. | R David Murray | 2015-03-30 | 1 | -0/+109 |
| | | | | | | | | | | | | | | | | | | | | | This mimics get_param's error handling for the most part. It is slightly better in some regards as get_param can produce some really weird results for duplicate *0* parts. It departs from get_param slightly in that if we have a mix of non-extended and extended pieces for the same parameter name, the new parser assumes they were all supposed to be extended and concatenates all the values, whereas get_param always picks the non-extended parameter value. All of this error recovery is pretty much arbitrary decisions... | ||||
| * | | merge 3.4 (#19996) | Benjamin Peterson | 2015-01-26 | 1 | -0/+6 |
| |\ \ | |/ | |||||
| | * | handle headers with no key (closes #19996) | Benjamin Peterson | 2015-01-26 | 1 | -0/+6 |
| | | | | | | | | | Patch by Cory Benfield. | ||||
| * | | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -6/+8 |
| |\ \ | |/ | |||||
| | * | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -6/+8 |
| | | | |||||
| * | | Merge: #21991: make headerregistry params property MappingProxyType. | R David Murray | 2014-10-17 | 1 | -0/+3 |
| |\ \ | |/ | |||||
| | * | #21991: make headerregistry params property MappingProxyType. | R David Murray | 2014-10-17 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | It is unlikely anyone is using the fact that the dictionary returned by the 'params' attribute was previously writable, but even if someone is the API is provisional so this kind of change is acceptable (and needed, to get the API "right" before it becomes official). Patch by Stéphane Wirtel. | ||||
| * | | Issue #16324: _charset parameter of MIMEText now also accepts ↵ | Berker Peksag | 2014-09-26 | 1 | -0/+4 |
| | | | | | | | | | | | | | email.charset.Charset instances. Initial patch by Claude Paroz. | ||||
| * | | Merge: #21091: make is_attachment a method. | R David Murray | 2014-09-20 | 1 | -5/+5 |
| |\ \ | |/ | |||||
| | * | #21091: make is_attachment a method. | R David Murray | 2014-09-20 | 1 | -5/+15 |
| |/ | | | | | | Since EmailMessage is a provisional API we can fix API bugs in a maintenance release, but I used a trick suggested by Serhiy to maintain backward compatibility with 3.4.0/1. | ||||
| * | #21079: is_attachment now looks only at the value, ignoring parameters. | R David Murray | 2014-09-20 | 1 | -1/+2 |
| | | |||||
| * | Decreased memory requirements of new tests added in issue21448. | Serhiy Storchaka | 2014-08-12 | 1 | -1/+2 |
| | | |||||
| * | Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing ↵ | Serhiy Storchaka | 2014-08-12 | 1 | -4/+59 |
| | | | | | | | long line. Original patch by Raymond Hettinger. | ||||
| * | #20977: fix undefined name in the email module. Patch by Rose Ames. | Ezio Melotti | 2014-08-04 | 1 | -0/+12 |
| | | |||||
| * | Issue #22002: Make full use of test discovery in test sub-packages. | Zachary Ware | 2014-07-23 | 2 | -21/+7 |
| | | | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery. | ||||
| * | #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed. | R David Murray | 2014-06-26 | 1 | -0/+25 |
| | | | | | This makes the behavior match that of Parser. Patch by Vajrasky Kok. | ||||
| * | #20871: improve email policy test coverage. | R David Murray | 2014-03-09 | 1 | -0/+9 |
| | | | | | | | | | More tests of the concrete policy methods would probably be a good idea, but this is a start, and it brings line coverage up to 100% for the policy module. Patch by Milan Oberkirch. | ||||
| * | #11558: Better message if attach called on non-multipart. | R David Murray | 2014-03-06 | 1 | -0/+8 |
| | | | | | Original patch by Varun Sharma. | ||||
| * | Merge: #14983: always add a line end after a MIME boundary marker. | R David Murray | 2014-02-08 | 2 | -5/+11 |
| |\ | |||||
