summaryrefslogtreecommitdiff
path: root/Lib/test/test_email/test_email.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge #28407 Improve test coverage of make_msgid.R David Murray2016-12-171-0/+12
|\
| * #28407 Improve test coverage of make_msgid.R David Murray2016-12-171-0/+12
| | | | | | | | Patch by Dillon Brock.
| * #19003: Only replace \r and/or \n line endings in email.generator.R David Murray2016-09-111-0/+12
| | | | | | | | | | This is a further restoration of backward compatibility, as well as being correct per the RFCs.
* | Merge: #19003: Only replace \r and/or \n line endings in email.generator.R David Murray2016-09-111-0/+12
| |
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | Issue #27445: Merge from 3.5Berker Peksag2016-09-081-1/+4
|\ \ | |/
| * Issue #27445: Don't pass str(_charset) to MIMEText.set_payload()Berker Peksag2016-09-081-1/+4
| | | | | | | | Patch by Claude Paroz.
| * Issue #27895: Spelling fixes (Contributed by Ville Skytt?).Martin Panter2016-09-071-2/+2
| |
* | Merge: #22233: Only split headers on \r and/or \n, per email RFCs.R David Murray2016-09-071-3/+43
|\ \ | |/ |/|
| * #27331: add policy keyword argument to all MIME subclasses.R David Murray2016-09-071-0/+41
| | | | | | | | Patch by Berker Peksag.
| * Issue #27895: Spelling fixes (Contributed by Ville Skytt?).Raymond Hettinger2016-08-301-2/+2
| |
| * Merge ISO-8859 fixes from 3.5Martin Panter2016-08-101-1/+0
| |\
| | * Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| | |
* | | #22233: Only split headers on \r and/or \n, per email RFCs.R David Murray2016-09-071-2/+4
|/ / | | | | | | Original patch by Martin Panter, new policy fixes by me.
* | Correct misspellings of ISO-8859Martin Panter2016-08-101-2/+2
|/
* Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.Serhiy Storchaka2015-11-101-1/+1
|\ | | | | | | Use time.monotonic instead of time.clock.
| * Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.Serhiy Storchaka2015-11-101-1/+4
| | | | | | | | Use time.monotonic or time.time instead of time.clock.
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-0/+15
|\ \ | |/ |/|
| * Issue #6598: Increased time precision and random number range inSerhiy Storchaka2015-05-191-0/+15
| |\ | | | | | | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID.
| | * #21083: add get_content_disposition method to email.message.R David Murray2015-05-161-0/+11
| | | | | | | | | | | | Patch by Abhilash Raj.
| | * merge 3.4 (#19996)Benjamin Peterson2015-01-251-0/+6
| | |\
| | * | Issue #16324: _charset parameter of MIMEText now also accepts ↵Berker Peksag2014-09-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | email.charset.Charset instances. Initial patch by Claude Paroz.
* | | | Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-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.
* | | Issue #6598: Increased time precision and random number range inSerhiy Storchaka2015-05-191-1/+24
| |/ |/| | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID.
* | handle headers with no key (closes #19996)Benjamin Peterson2015-01-251-0/+6
|/ | | | Patch by Cory Benfield.
* Decreased memory requirements of new tests added in issue21448.Serhiy Storchaka2014-08-121-1/+2
|
* Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing ↵Serhiy Storchaka2014-08-121-4/+59
| | | | | | long line. Original patch by Raymond Hettinger.
* #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.R David Murray2014-06-261-0/+25
| | | | This makes the behavior match that of Parser. Patch by Vajrasky Kok.
* #11558: Better message if attach called on non-multipart.R David Murray2014-03-061-0/+8
| | | | Original patch by Varun Sharma.
* Merge: #14983: always add a line end after a MIME boundary marker.R David Murray2014-02-081-4/+38
|\
| * Merge #19772: Do not mutate message when downcoding to 7bit.R David Murray2014-02-081-4/+38
| |\
| | * Merge: #17369: Improve handling of broken RFC2231 values in get_filename.R David Murray2014-02-071-4/+38
| | |\
| | | * #20531: Apply the 3.3 version of the #19063 fix.R David Murray2014-02-071-0/+32
| | | | | | | | | | | | | | | | | | | | So passing unicode to set_payload works again (but still doesn't do what you want when the message is serialized).
| | | * #20531: Revert e20f98a8ed71, the 3.4 version of the #19063 fix.R David Murray2014-02-071-40/+12
| | | |
| | | * Merge #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-16/+46
| | | |\ | | | | | | | | | | | | | | | (No idea why test_tarfile is listed as changed...it isn't.)
| | | | * #19957: Simplify encode_7or8bit now that _payload is always str.R David Murray2013-12-121-1/+8
| | | | | | | | | | | | | | | | | | | | Patch by Vajrasky Kok, test enhancement by me.
| | | | * #19063: fix set_payload handling of non-ASCII string input.R David Murray2013-12-111-12/+40
| | | | | | | | | | | | | | | | | | | | | | | | | This version of the fix raises an error instead of accepting the invalid input (ie: if a non-ASCII string is used but no charset is specified).
| | | | * Issue #19590: Use specific asserts in email tests.Serhiy Storchaka2013-11-161-3/+30
| | | | |\
| | | | | * Issue #12037: Fix test_email for desktop Windows.Terry Jan Reedy2013-08-311-3/+30
| | | | | |\
| | | | | | * Merge #18324: set_payload now correctly handles binary input.R David Murray2013-08-211-0/+36
| | | | | | |\
| | | | | | * \ #18505: merge with 3.3.Ezio Melotti2013-08-101-3/+30
| | | | | | |\ \
| | | | | | | * | #18600: add policy to add_string, and as_bytes and __bytes__ methods.R David Murray2013-08-091-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.
* | | | | | | | | #14983: always add a line end after a MIME boundary marker.R David Murray2014-02-081-5/+10
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more RFC compliant (see issue) and fixes a problem with signature verifiers rejecting the part when signed. There is some amount of backward compatibility concern here since it changes the output, but the RFC issue coupled with fixing the problem with signature verifiers seems worth the small risk of breaking code that depends on the current incorrect output.
* | | | | | | | #19772: Do not mutate message when downcoding to 7bit.R David Murray2014-02-081-1/+11
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bit of an ugly hack because of the way generator pieces together the output message. The deepcopys aren't too expensive, though, because we know it is only called on messages that are not multiparts, and the payload (the thing that could be large) is an immutable object. Test and preliminary work on patch by Vajrasky Kok.
* | | | | | | #17369: Improve handling of broken RFC2231 values in get_filename.R David Murray2014-02-071-0/+20
|/ / / / / / | | | | | | | | | | | | | | | | | | This fixes a regression relative to python2.
* | | | | | #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an edge case (20206) where if the input ended in a character needing encoding but there was no newline on the string, the last byte of the encoded character would be dropped. The fix is to use a more efficient algorithm, provided by Serhiy Storchaka (5803), that does not have the bug.
* | | | | | #19063: partially fix set_payload handling of non-ASCII string input.R David Murray2013-12-111-0/+32
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | This is a backward compatible partial fix, the complete fix requires raising an error instead of accepting the invalid input, so the real fix is only suitable for 3.4.
* | | | | Issue #19590: Use specific asserts in email tests.Serhiy Storchaka2013-11-161-90/+75
|/ / / /
* | | | Issue #12037: Fix test_email for desktop Windows.Terry Jan Reedy2013-08-311-2/+2
| |_|/ |/| |
* | | #18324: set_payload now correctly handles binary input.R David Murray2013-08-211-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.