[Zope-Checkins] CVS: Zope/lib/python/Products/MIMETools - MIMETag.py:1.6.16.1

Andreas Jung andreas@zope.com
Tue, 27 Nov 2001 09:27:00 -0500


Update of /cvs-repository/Zope/lib/python/Products/MIMETools
In directory cvs.zope.org:/tmp/cvs-serv5337

Modified Files:
      Tag: Zope-2_4-branch
	MIMETag.py 
Log Message:
forced creation of MIME-Version header


=== Zope/lib/python/Products/MIMETools/MIMETag.py 1.6 => 1.6.16.1 ===
     def render(self, md):
         contents=[]
-        mw = MimeWriter(StringIO())
+        IO = StringIO()
+        IO.write("Mime-Version: 1.0\n")
+        mw = MimeWriter(IO)
         outer = mw.startmultipartbody(self.multipart)
         for x in self.sections:
             a, b = x