summaryrefslogtreecommitdiffstats
path: root/Lib/email
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21448: Improve performance of the email feedparserRaymond Hettinger2015-05-231-8/+8
|
* Issue #6598: Increased time precision and random number range inSerhiy Storchaka2015-05-191-5/+4
|\ | | | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID.
| * Issue #6598: Increased time precision and random number range inSerhiy Storchaka2015-05-191-5/+4
| | | | | | | | email.utils.make_msgid() to strengthen the uniqueness of the message ID.
* | #20098: add mangle_from_ policy option.R David Murray2015-05-172-5/+16
| | | | | | | | | | | | | | 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 Murray2015-05-172-5/+21
| | | | | | | | | | | | | | | | | | 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 Murray2015-05-161-0/+12
| | | | | | | | Patch by Abhilash Raj.
* | Escaped backslashes in docstrings.Serhiy Storchaka2015-04-031-1/+1
|\ \ | |/
| * Escaped backslashes in docstrings.Serhiy Storchaka2015-04-031-1/+1
| |
* | Merge: #23745: handle duplicate MIME parameter names in new parser.R David Murray2015-03-301-7/+27
|\ \ | |/
| * #23745: handle duplicate MIME parameter names in new parser.R David Murray2015-03-301-7/+27
| | | | | | | | | | | | | | | | | | | | 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...
* | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__Serhiy Storchaka2015-01-312-6/+0
| | | | | | | | implementation in issue #21408 they are redundant.
* | merge 3.4 (#19996)Benjamin Peterson2015-01-261-1/+10
|\ \ | |/
| * handle headers with no key (closes #19996)Benjamin Peterson2015-01-261-1/+10
| | | | | | | | Patch by Cory Benfield.
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-1/+1
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-1/+1
| |
* | Merge: #21991: make headerregistry params property MappingProxyType.R David Murray2014-10-171-1/+2
|\ \ | |/
| * #21991: make headerregistry params property MappingProxyType.R David Murray2014-10-171-1/+2
| | | | | | | | | | | | | | | | | | 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.
* | #22508: Drop email __version__ string. It no longer means anything.R David Murray2014-10-031-2/+0
| | | | | | | | | | | | A debian code search (by Tshepang Lekhonkhobe) turned up only one package checking email.__version__...and it was the 2.7-only mailman package. Since Barry approves this change, it seems safe enough to make it...
* | merge 3.4Georg Brandl2014-10-021-1/+1
|\ \ | |/
| * Closes #19434: fix copy-paste error in MIMENonMultipart docstring.Georg Brandl2014-10-021-1/+1
| |
* | Issue #16324: _charset parameter of MIMEText now also accepts ↵Berker Peksag2014-09-261-0/+3
| | | | | | | | | | | | email.charset.Charset instances. Initial patch by Claude Paroz.
* | Merge: #21091: make is_attachment a method.R David Murray2014-09-201-3/+3
|\ \ | |/
| * #21091: make is_attachment a method.R David Murray2014-09-201-3/+17
| | | | | | | | | | | | 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.
* | Merge: #21079: is_attachment now looks only at the value, ignoring parameters.R David Murray2014-09-201-3/+1
|\ \ | |/
| * #21079: is_attachment now looks only at the value, ignoring parameters.R David Murray2014-09-201-3/+1
| |
* | Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing ↵Serhiy Storchaka2014-08-121-8/+18
|\ \ | |/ | | | | | | | | long line. Original patch by Raymond Hettinger.
| * Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing ↵Serhiy Storchaka2014-08-121-8/+18
| | | | | | | | | | | | long line. Original patch by Raymond Hettinger.
* | #20977: merge with 3.4.Ezio Melotti2014-08-041-3/+3
|\ \ | |/
| * #20977: fix undefined name in the email module. Patch by Rose Ames.Ezio Melotti2014-08-041-3/+3
| |
* | Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-251-2/+4
|/ | | | class name instead of hardcoded one.
* #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.R David Murray2014-06-261-1/+3
| | | | This makes the behavior match that of Parser. Patch by Vajrasky Kok.
* #21300: Clean up the docs for the email "policy" arguments.R David Murray2014-05-071-3/+6
|
* #20976: remove unneeded quopri import in email.utils.R David Murray2014-03-232-4/+2
|
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-207-14/+1
|
* #11558: Better message if attach called on non-multipart.R David Murray2014-03-061-1/+5
| | | | Original patch by Varun Sharma.
* Merge: #14983: always add a line end after a MIME boundary marker.R David Murray2014-02-081-2/+1
|\
| * #14983: always add a line end after a MIME boundary marker.R David Murray2014-02-081-2/+1
| | | | | | | | | | | | | | | | | | 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.
* | Merge: #16983: Apply postel's law to encoded words inside quoted strings.R David Murray2014-02-081-0/+7
|\ \ | |/
| * #16983: Apply postel's law to encoded words inside quoted strings.R David Murray2014-02-081-0/+7
| | | | | | | | | | | | | | | | | | | | This applies only to the new parser. The old parser decodes encoded words inside quoted strings already, although it gets the whitespace wrong when it does so. This version of the patch only handles the most common case (a single encoded word surrounded by quotes), but I haven't seen any other variations of this in the wild yet, so its good enough for now.
* | Merge #19772: Do not mutate message when downcoding to 7bit.R David Murray2014-02-081-0/+14
|\ \ | |/
| * #19772: Do not mutate message when downcoding to 7bit.R David Murray2014-02-081-0/+14
| | | | | | | | | | | | | | | | | | 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.
* | Merge: #17369: Improve handling of broken RFC2231 values in get_filename.R David Murray2014-02-071-0/+4
|\ \ | |/
| * #17369: Improve handling of broken RFC2231 values in get_filename.R David Murray2014-02-071-0/+4
| | | | | | | | This fixes a regression relative to python2.
* | Merge: #19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.R David Murray2014-02-071-4/+3
|\ \ | |/
| * #19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.R David Murray2014-02-071-4/+3
| |
* | #20531: Apply the 3.3 version of the #19063 fix.R David Murray2014-02-072-11/+26
| | | | | | | | | | 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-072-29/+22
| |
* | #20476: use EmailMessage as factory if non-compat32 policy is used.R David Murray2014-02-072-9/+18
| | | | | | | | | | In 3.5 I will fix this right by adding a message_factory attribute to the policy.
* | Merge #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-82/+60
|\ \ | |/ | | | | (No idea why test_tarfile is listed as changed...it isn't.)
| * #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-82/+60
| | | | | | | | | | | | | | | | 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.