Home | History | Annotate | Download | only in mime

Lines Matching defs:message

5 """Class representing message/* MIME documents."""
9 from email import message
16 """Class representing message/* MIME documents."""
19 """Create a message/* type MIME document.
21 _msg is a message object and must be an instance of Message, or a
22 derived class of Message, otherwise a TypeError is raised.
24 Optional _subtype defines the subtype of the contained message. The
28 MIMENonMultipart.__init__(self, 'message', _subtype)
29 if not isinstance(_msg, message.Message):
30 raise TypeError('Argument is not an instance of Message')
33 message.Message.attach(self, _msg)
35 self.set_default_type('message/rfc822')