summaryrefslogtreecommitdiffstats
path: root/Lib/email/generator.py
Commit message (Collapse)AuthorAgeFilesLines
* #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.
* #15232: correctly mangle From lines in MIME preamble and epilogueR David Murray2012-07-231-2/+10
|
* Merged revisions 87415 via svnmerge fromR. David Murray2010-12-211-1/+2
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87415 | r.david.murray | 2010-12-21 13:07:59 -0500 (Tue, 21 Dec 2010) | 4 lines Fix the change made for issue 1243654. Surprisingly, it turns out there was no test that exercised this code path. ........
* Merged revisions 87191 via svnmerge fromR. David Murray2010-12-121-12/+6
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87191 | r.david.murray | 2010-12-12 15:06:19 -0500 (Sun, 12 Dec 2010) | 6 lines #243654: only create a new MIME boundary if we don't already have one. The rearranged code should do exactly what the old code did, but the new code avoids a potentially costly re computation in the case where a boundary already exists. ........
* Merged revisions 85146 via svnmerge fromR. David Murray2010-12-061-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85146 | r.david.murray | 2010-10-01 16:38:33 -0400 (Fri, 01 Oct 2010) | 3 lines Fix docstring typo. ........
* Issue 7970: When email.Parser.Parser parses a MIME message of typeR. David Murray2010-02-211-2/+10
| | | | | | | | | | message/rfc822 it turns it into an object whose body consists of a list containing a single Message object. HeaderParser, on the other hand, just copies the body as a string. Generator.flatten has a special handler for the message mime type that expected the body to be the one item list. This fails if the message was parsed by HeaderParser. So we now check to see if the body is a string first, and if so just we just emit it.
* Issue #1670765: Prevent email.generator.Generator from re-wrappingR. David Murray2010-01-161-0/+11
| | | | | | headers in multipart/signed MIME parts, which fixes one of the sources of invalid modifications to such parts by Generator. Patch and tests by Martin von Gagern.
* More yearly updates.Georg Brandl2010-01-011-1/+1
|
* A fix for issue 1974, inspired by the patch from Andi Albrecht (aalbrecht),Barry Warsaw2009-03-301-5/+7
| | | | | | though with some changes by me. This patch should not be back ported or forward ported. It's a bit too risky for 2.6 and 3.x does things fairly differently.
* Remove Barry's love of deprecated syntax to silence warnings in the emailBrett Cannon2008-08-031-1/+1
| | | | package, when run under -3, about using <>.
* Merge email package 4.0 from the sandbox, including documentation, test cases,Barry Warsaw2006-03-181-0/+348
and NEWS updates.