diff options
author | Barry Warsaw <barry@python.org> | 2002-07-09 02:40:35 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-09 02:40:35 (GMT) |
commit | ed53bdb02da2a56908f836cafbcaa9cfa2597bad (patch) | |
tree | 0ea6053d39a82a8bda3a3e356a9b2825d8ba8f83 | |
parent | 8fa06b55f6ea19bceed122620ae8f93487579de5 (diff) | |
download | cpython-ed53bdb02da2a56908f836cafbcaa9cfa2597bad.zip cpython-ed53bdb02da2a56908f836cafbcaa9cfa2597bad.tar.gz cpython-ed53bdb02da2a56908f836cafbcaa9cfa2597bad.tar.bz2 |
__init__(): Be sure to set the default type to message/rfc822.
-rw-r--r-- | Lib/email/MIMEMessage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/email/MIMEMessage.py b/Lib/email/MIMEMessage.py index 8fa86cb..2042dd9 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') |