l.s.m.m.m.MessageSet : class documentation

Part of lp.services.messages.model.message View In Hierarchy

No class docstring
Method get Undocumented
Method fromText See IMessageSet.
Class Method decode Undocumented
Method fromEmail See IMessageSet.fromEmail.
Method _decode_header Decode an RFC 2047 encoded header.
def get(self, rfc822msgid):
Undocumented
def fromText(self, subject, content, owner=None, datecreated=None, rfc822msgid=None):
See IMessageSet.
@classmethod
def decode(self, encoded, encoding):
Undocumented
def _decode_header(self, header):

Decode an RFC 2047 encoded header.

>>> MessageSet()._decode_header('=?iso-8859-1?q?F=F6=F6_b=E4r?=')
u'F\xf6\xf6 b\xe4r'

If the header isn't encoded properly, the characters that can't be decoded are replaced with unicode question marks.

>>> MessageSet()._decode_header('=?utf-8?q?F=F6?=')
u'F\ufffd'
def fromEmail(self, email_message, owner=None, filealias=None, parsed_message=None, create_missing_persons=False, fallback_parent=None, date_created=None, restricted=False):
See IMessageSet.fromEmail.
API Documentation for Launchpad, generated by pydoctor at 2019-11-19 00:00:37.