Avoid crashes with nested multipart/mixed parts.
diff --git a/Lib/mimify.py b/Lib/mimify.py
index ce4c4ba..15f0981 100755
--- a/Lib/mimify.py
+++ b/Lib/mimify.py
@@ -367,7 +367,14 @@
 	line = message_end
 	while multipart:
 		if line == multipart + '--\n':
-			return
+			# read bit after the end of the last part
+			while 1:
+				line = ifile.readline()
+				if not line:
+					return
+				if must_quote_body:
+					line = mime_encode(line, 0)
+				ofile.write(line)
 		if line == multipart + '\n':
 			nifile = File(ifile, multipart)
 			mimify_part(nifile, ofile, 1)