Commit Graph

397 Commits

Author SHA1 Message Date
Martin Panter
5c715b0897 Correct misspellings of ISO-8859 2016-08-10 05:25:16 +00:00
Martin Panter
b44c4520d9 Issue #27125: Fix various errors like “will [be] inherited” 2016-05-29 08:13:58 +00:00
Martin Panter
b1d867f149 Issue #27076: Doc, comment and test function name spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:28:50 +00:00
Serhiy Storchaka
9665cca16d Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.time instead of time.clock.
2015-11-10 19:53:37 +02:00
Serhiy Storchaka
49f2ccf83d Issue #6598: Increased time precision and random number range in
email.utils.make_msgid() to strengthen the uniqueness of the message ID.
2015-05-19 10:09:27 +03:00
Georg Brandl
52d0a1b16f Closes #19434: fix copy-paste error in MIMENonMultipart docstring. 2014-10-02 12:35:08 +02:00
Serhiy Storchaka
ce0f744a60 Decreased memory requirements of new tests added in issue21448. 2014-08-12 20:22:27 +03:00
Serhiy Storchaka
bc6f8de73b Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line.
Original patch by Raymond Hettinger.
2014-08-12 13:58:23 +03:00
R David Murray
2cfae9b03f #14983: always add a line end after a MIME boundary marker.
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.
2014-02-08 17:54:12 -05:00
Serhiy Storchaka
1153757356 Issue #19590: Use specific asserts in email tests. 2013-11-16 12:56:05 +02:00
R David Murray
d781b07e29 #18437: fix comment typo. 2013-07-12 22:57:12 -04:00
R David Murray
c114cc8684 #17171: backport behavior-confirming test from python3. 2013-02-11 10:57:37 -05:00
R David Murray
a5e7f8f8e0 #16564: test to confirm behavior that regressed in python3.
Also add running of test_email_renamed to the email regrtest.  It contains
tests that the base email/tests/test_email.py does not, which I discovered
while trying to backport this test for confirmation of the behavior.
2013-02-09 12:53:29 -05:00
Andrew Svetlov
bd644608bd revert comment wording (#16714) 2012-12-19 22:47:05 +02:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Ezio Melotti
003014bf1e #15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka. 2012-09-21 16:27:45 +03:00
R David Murray
0f111c13cd #15232: correctly mangle From lines in MIME preamble and epilogue 2012-07-22 21:55:12 -04:00
Alexander Belopolsky
83ae8beb08 Fixed the name of the 'email.Utils' module in tests. 2012-06-22 10:38:48 -04:00
Alexander Belopolsky
e99d3a160c Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
2012-06-21 20:57:39 -04:00
Ezio Melotti
c2077b0d9b #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
Ezio Melotti
24b07bcba3 #11515: fix several typos. Patch by Piotr Kasprzyk. 2011-03-15 18:55:01 +02:00
Antoine Pitrou
414596ae8d Lib/email/test/data/msg_26.txt had its line endings wrong in the SVN repository.
(they were probably converted right in working copies through an SVN property)
2011-03-05 21:39:40 +01:00
Georg Brandl
faa9ad2a46 Add updated .hgeol file and fix newlines in the 2.7 branch. 2011-03-05 15:06:13 +01:00
R. David Murray
d97f5ce377 Merged revisions 87873 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87873 | r.david.murray | 2011-01-08 21:35:24 -0500 (Sat, 08 Jan 2011) | 12 lines

  #5871: protect against header injection attacks.

  This makes Header.encode throw a HeaderParseError if it winds up
  formatting a header such that a continuation line has no leading
  whitespace and looks like a header.  Since Header accepts values
  containing newlines and preserves them (and this is by design), without
  this fix any program that took user input (say, a subject in a web form)
  and passed it to the email package as a header was vulnerable to header
  injection attacks.  (As far as we know this has never been exploited.)

  Thanks to Jakub Wilk for reporting this vulnerability.
........
2011-01-09 03:02:04 +00:00
R. David Murray
5360d003b6 #1379416: encode charset name to ascii to avoid unicode promotion of output 2010-12-27 19:17:17 +00:00