Commit 1015be38 authored by Guido van Rossum's avatar Guido van Rossum

[Sjoerd Mullender]

Fixed infinite loop when a message ends prematurely in some
circumstances.
parent 5ff1761d
...@@ -398,6 +398,14 @@ def mimify_part(ifile, ofile, is_mime): ...@@ -398,6 +398,14 @@ def mimify_part(ifile, ofile, is_mime):
break break
ofile.write(line) ofile.write(line)
continue continue
# unexpectedly no multipart separator--copy rest of file
while 1:
line = ifile.readline()
if not line:
return
if must_quote_body:
line = mime_encode(line, 0)
ofile.write(line)
def mimify(infile, outfile): def mimify(infile, outfile):
'''Convert 8bit parts of a MIME mail message to quoted-printable.''' '''Convert 8bit parts of a MIME mail message to quoted-printable.'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment