summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email/test_message.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-106300: Improve `assertRaises(Exception)` usages in tests ↵Miss Islington (bot)2023-07-071-2/+4
| | | | | | | | (GH-106302) (GH-106534) gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) (cherry picked from commit 6e6a4cd52332017b10c8d88fbbbfe015948093f4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42892: fix email multipart attribute error (GH-26903)andrei kulakov2021-07-301-1/+33
|
* bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)Dong-hee Na2021-06-211-0/+7
|
* bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119)Abhilash Raj2019-06-251-0/+9
| | | | | | | * bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. When certain malformed messages have content-type set to 'mulitpart/*' but still have a single part body, iter_attachments can raise AttributeError. This patch fixes it by returning a None value instead when the body is single part.
* bpo-36520: Email header folded incorrectly (#13608)websurfer52019-06-061-0/+131
| | | | | | | | | | | | | | | | | * bpo-36520: reset the encoded word offset when starting a new line during an email header folding operation * 📜🤖 Added by blurb_it. * bpo-36520: add an additional test case, and provide descriptive comments for the test_folding_with_utf8_encoding_* tests * bpo-36520: fix whitespace issue * bpo-36520: changes per reviewer request -- remove extraneous backslashes; add whitespace between terminating quotes and line-continuation backslashes; use "bpo-" instead of "issue #" in comments
* #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.
* 27988: Make sure iter_attachments does not mutate the payload list.R David Murray2016-09-071-0/+10
|
* Merge: #21091: make is_attachment a method.R David Murray2014-09-201-5/+5
|\
| * #21091: make is_attachment a method.R David Murray2014-09-201-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 Murray2014-09-201-1/+2
|
* #20476: use EmailMessage as factory if non-compat32 policy is used.R David Murray2014-02-071-1/+15
| | | | | In 3.5 I will fix this right by adding a message_factory attribute to the policy.
* #18891: Complete new provisional email API.R David Murray2013-10-171-1/+741
| | | | | | | | | | | | This adds EmailMessage and, MIMEPart subclasses of Message with new API methods, and a ContentManager class used by the new methods. Also a new policy setting, content_manager. Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka, and reflects their feedback. I will ideally add some examples of using the new API to the documentation before the final release.
* #10839: add new test file that was omitted from checkinR David Murray2012-05-291-0/+18