From: Barry Warsaw Date: Tue, 9 Jul 2002 02:40:35 +0000 (+0000) Subject: __init__(): Be sure to set the default type to message/rfc822. X-Git-Tag: v2.3c1~5080 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed53bdb02da2a56908f836cafbcaa9cfa2597bad;p=python __init__(): Be sure to set the default type to message/rfc822. --- diff --git a/Lib/email/MIMEMessage.py b/Lib/email/MIMEMessage.py index 8fa86cb5b4..2042dd9752 100644 --- a/Lib/email/MIMEMessage.py +++ b/Lib/email/MIMEMessage.py @@ -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')