[Zope-Checkins] CVS: Zope/lib/python/Products/MIMETools - MIMETag.py:1.7
Andreas Jung
andreas@zope.com
Tue, 27 Nov 2001 09:28:39 -0500
Update of /cvs-repository/Zope/lib/python/Products/MIMETools
In directory cvs.zope.org:/tmp/cvs-serv5979
Modified Files:
MIMETag.py
Log Message:
forced creation of MIME-Version header
=== Zope/lib/python/Products/MIMETools/MIMETag.py 1.6 => 1.7 ===
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