Part of lp.services.messages.model.message View In Hierarchy
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. |
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'