Commit e7629039 authored by Andreas Jung's avatar Andreas Jung

forced creation of MIME-Version header

parent cd6ff5d9
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
__rcs_id__='$Id: MIMETag.py,v 1.6 2001/04/27 20:27:41 shane Exp $' __rcs_id__='$Id: MIMETag.py,v 1.7 2001/11/27 14:28:39 andreasjung Exp $'
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
...@@ -182,7 +182,9 @@ class MIMETag: ...@@ -182,7 +182,9 @@ class MIMETag:
def render(self, md): def render(self, md):
contents=[] contents=[]
mw = MimeWriter(StringIO()) IO = StringIO()
IO.write("Mime-Version: 1.0\n")
mw = MimeWriter(IO)
outer = mw.startmultipartbody(self.multipart) outer = mw.startmultipartbody(self.multipart)
for x in self.sections: for x in self.sections:
a, b = x a, b = x
......
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