Part of canonical.launchpad.database.message View In Hierarchy
Implements interfaces: canonical.launchpad.interfaces.message.IMessageSet
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. |
If no such messages exist, raise NotFoundError.
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'