Class MessageRenderer
object --+
|
MessageRenderer
Parses a rfc822 message into a python structure.
A message is represented by dictionary of the following format:
{
'head': dict(subject=, from=, to=, cc=, bcc, date),
'parts': [part1, part2, ...]
'attachments': [attachment1, attachment2, ...]
}
`parts` is a list of messages mime parts that can be inlined into
the message, usually text/plain and text/html.
`attachments` is a list of dictionaries of the following format:
dict(content_type=, content_id=, filename=, description=).
If the attachments is a rfc822 message `content_type` is set to
'message/rfc822' and the rest of the dictionary is identical to the
message representation described above.
|
|
|
|
|
process_part(self,
part,
parts,
attachments,
ignore_msg=False) |
|
|
|
render_text_plain(self,
part)
Convert a text/plain part into a genshi stream |
|
|
|
render_text_html(self,
part)
Convert a text/html part into a genshi stream |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Inherited from object :
__class__
|