summaryrefslogtreecommitdiffstats
path: root/Lib/email
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy2018-02-041-2/+2
| | | | | | | | | Fix typos found by codespell in docs, docstrings, and comments. Fixes for the following files were in post-3.6 code and not backported: Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py, Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
* bpo-27931: Fix email address header parsing error (GH-5329) (GH-5431)Miss Islington (bot)2018-01-291-1/+7
| | | | | | Correctly handle addresses whose username is an empty quoted string. (cherry picked from commit aa218d1649690d1c1ba86a9972f7fae646bf1a8f) Co-authored-by: jayyyin <jayyin11043@hotmail.com>
* [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) ↵Andrew Svetlov2017-12-141-1/+1
| | | | | | | | | | | | | | (#4864) * [3.6] bpo-32297: Few misspellings found in Python source code comments. (GH-4803) * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py. (cherry picked from commit 53f7a7c2814fbfd8a29200926601a32fa48bacb3)
* bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)Miss Islington (bot)2017-12-042-446/+292
| | | | | | | | | | | | | | | | | | | | | The original algorithm tried to delegate the folding to the tokens so that those tokens whose folding rules differed could specify the differences. However, this resulted in a lot of duplicated code because most of the rules were the same. The new algorithm moves all folding logic into a set of functions external to the token classes, but puts the information about which tokens can be folded in which ways on the tokens...with the exception of mime-parameters, which are a special case (which was not even implemented in the old folder). This algorithm can still probably be improved and hopefully simplified somewhat. Note that some of the test expectations are changed. I believe the changes are toward more desirable and consistent behavior: in general when (re) folding a line the canonical version of the tokens is generated, rather than preserving errors or extra whitespace. (cherry picked from commit 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6)
* Fix trailing whitespaces in C and Python files. (#4131)Serhiy Storchaka2017-10-261-1/+1
|
* bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr ↵Rohit Balasubramanian2017-10-071-0/+6
| | | | | (GH-3647) (GH-3733) (cherry picked from commit 9e7b9b21fe45f7d93eaf9382fedfa18247d0d2b2)
* bpo-30532: Fix whitespace folding in certain cases (#2591)Joel Hillacre2017-07-061-3/+1
| | | 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 ↵Mariatta2017-06-161-2/+6
| | | | | | | (GH-595) (GH-2233) If max_line_length=None is specified while using the Compat32 policy, it is no longer ignored.. (cherry picked from commit b459f7482612d340b88b62edc024628595ec6337)
* [3.6] Fix typos in multiple `.rst` files (GH-1668) (#1702)delirious-lettuce2017-05-211-1/+1
| | | (cherry picked from commit 3378b2062c7fbb77a9b5e6d315d6b94160fac69a)
* Merge: #19003: Only replace \r and/or \n line endings in email.generator.R David Murray2016-09-111-6/+10
|
* #20476: Deal with the message_factory circular import differently.R David Murray2016-09-103-5/+6
| | | | | | | It turns out we can't depend on email.message getting imported every place message_factory is needed, so to avoid a circular import we need to special case Policy.message_factory=None in the parser instead of using monkey patching. I had a feeling that was a bad idea when I did it.
* #20476: add a message_factory policy attribute to email.R David Murray2016-09-094-11/+12
|
* Merge with 3.5Steve Dower2016-09-091-4/+5
|\
| * #28047: Fix calculation of base64 line length.R David Murray2016-09-091-4/+5
| | | | | | | | | | 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.
* | Merge: #27630: Be consistent in how _XXX/_encoded_XXX vars are initialized.R David Murray2016-09-091-9/+1
|\ \ | |/
| * #27630: Be consistent in how _XXX/_encoded_XXX vars are initialized.R David Murray2016-09-091-9/+1
| |
* | Add policy keyword to email.generator.DecodedGenerator.R David Murray2016-09-081-2/+4
| |
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-082-12/+12
| | | | | | | | | | | | | | 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-3/+1
|\ \ | |/
| * Issue #27445: Don't pass str(_charset) to MIMEText.set_payload()Berker Peksag2016-09-081-3/+1
| | | | | | | | Patch by Claude Paroz.
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
| |
* | #24277: The new email API is no longer provisional.R David Murray2016-09-081-0/+20
| | | | | | | | | | | | | | This is a wholesale reorganization and editing of the email documentation to make the new API the standard one, and the old API the 'legacy' one. The default is still the compat32 policy, for backward compatibility. We will change that eventually.
* | Merge: #22233: Only split headers on \r and/or \n, per email RFCs.R David Murray2016-09-072-17/+25
|\ \ | |/
| * #22233: Only split headers on \r and/or \n, per email RFCs.R David Murray2016-09-072-17/+25
| | | | | | | | Original patch by Martin Panter, new policy fixes by me.
* | #27331: add policy keyword argument to all MIME subclasses.R David Murray2016-09-077-13/+21
| | | | | | | | Patch by Berker Peksag.
* | Merge: 27988: Make sure iter_attachments does not mutate the payload list.R David Murray2016-09-071-1/+1
|\ \ | |/
| * 27988: Make sure iter_attachments does not mutate the payload list.R David Murray2016-09-071-1/+1
| |
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-304-7/+7
|/
* Correct misspellings of ISO-8859Martin Panter2016-08-102-2/+2
|
* Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList.Serhiy Storchaka2016-07-171-2/+2
|
* #27522: break unintended cycle in feedparser.R David Murray2016-07-161-3/+6
| | | | Patch by Costas.
* Issue #27125: Fix various errors like “will [be] inherited”Martin Panter2016-05-291-1/+1
|
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-262-3/+3
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-172-4/+4
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation, code comments, and a debugging messages.
* Issues #26310, #26311: Fix typos in the documentation and code commentsMartin Panter2016-02-101-1/+1
|
* Issue #22932: Fix timezones in email.utils.formatdate.Robert Collins2015-07-311-23/+7
|\ | | | | | | Patch from Dmitry Shachnev.
| * Issue #22932: Fix timezones in email.utils.formatdate.Robert Collins2015-07-311-23/+7
| | | | | | | | Patch from Dmitry Shachnev.
* | 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
|\ \ | |/