]> granicus.if.org Git - python/commitdiff
__init__(): Be sure to set the default type to message/rfc822.
authorBarry Warsaw <barry@python.org>
Tue, 9 Jul 2002 02:40:35 +0000 (02:40 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 9 Jul 2002 02:40:35 +0000 (02:40 +0000)
Lib/email/MIMEMessage.py

index 8fa86cb5b43585927dfbd2916ce83acc34475718..2042dd97529f62f3a5ad86ee70914f376bf74257 100644 (file)
@@ -28,3 +28,5 @@ class MIMEMessage(MIMENonMultipart):
         # It's convenient to use this base class method.  We need to do it
         # this way or we'll get an exception
         Message.Message.attach(self, _msg)
+        # And be sure our default type is set correctly
+        self.set_default_type('message/rfc822')