From ed53bdb02da2a56908f836cafbcaa9cfa2597bad Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 9 Jul 2002 02:40:35 +0000 Subject: [PATCH] __init__(): Be sure to set the default type to message/rfc822. --- Lib/email/MIMEMessage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/email/MIMEMessage.py b/Lib/email/MIMEMessage.py index 8fa86cb5b43..2042dd97529 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')