cpython: b97f65f2298d (original) (raw)

Mercurial > cpython

changeset 78245:b97f65f2298d 3.2

#15232: correctly mangle From lines in MIME preamble and epilogue [#15232]

R David Murray rdmurray@bitdance.com
date Sun, 22 Jul 2012 21:47:53 -0400
parents 84b577567fab
children 80b81658455b af2e044609ca
files Lib/email/generator.py Lib/email/test/test_email.py Misc/NEWS
diffstat 3 files changed, 35 insertions(+), 2 deletions(-)[+] [-] Lib/email/generator.py 12 Lib/email/test/test_email.py 22 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/email/generator.py +++ b/Lib/email/generator.py @@ -233,7 +233,11 @@ class Generator: msg.set_boundary(boundary) # If there's a preamble, write it out, with a trailing CRLF if msg.preamble is not None:

@@ -251,7 +255,11 @@ class Generator: self.write(self._NL + '--' + boundary + '--') if msg.epilogue is not None: self.write(self._NL)

def _handle_multipart_signed(self, msg): # The contents of signed parts has to stay unmodified in order to keep

--- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -1275,6 +1275,28 @@ From the desk of A.A.A.: Blah blah blah """)

+

+

+

+

+

Test the basic MIMEAudio class

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -98,6 +98,9 @@ Core and Builtins Library ------- +- Issue #15232: when mangle_from is True, email.Generator now correctly mangles