c.l.d.m.MessageSet : class documentation

Part of canonical.launchpad.database.message View In Hierarchy

Implements interfaces: canonical.launchpad.interfaces.message.IMessageSet

No class docstring
Method get Return a list of IMessage's with the given rfc822msgid.
Method fromText See IMessageSet.
Method fromEmail See IMessageSet.fromEmail.
Class Method threadMessages See IMessageSet.
Class Method flattenThreads See IMessageSet.
Method _decode_header Decode an RFC 2047 encoded header.
Static Method _parentToChild Return a mapping from parent to child and list of root messages.
def get(self, rfc822msgid):
Return a list of IMessage's with the given rfc822msgid.

If no such messages exist, raise NotFoundError.

def fromText(self, subject, content, owner=None, datecreated=None, rfc822msgid=None):
See IMessageSet.
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=F6_b=E4r?=')
u'F\ufffd\ufffd'
def fromEmail(self, email_message, owner=None, filealias=None, parsed_message=None, create_missing_persons=False, fallback_parent=None, date_created=None):
See IMessageSet.fromEmail.
@staticmethod
def _parentToChild(messages):
Return a mapping from parent to child and list of root messages.
@classmethod
def threadMessages(klass, messages):
See IMessageSet.
@classmethod
def flattenThreads(klass, threaded_messages, _depth=0):
See IMessageSet.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.