PyDocs

Nav

Internet Data Handling

EmailMessage.get_body

  • EmailMessage.get_body(preferencelist=('related', 'html', 'plain'))
Return best candidate mime part for display as 'body' of message.

Do a depth first search, starting with self, looking for the first part
matching each of the items in preferencelist, and return the part
corresponding to the first item that has a match, or None if no items
have a match.  If 'related' is not included in preferencelist, consider
the root part of any multipart/related encountered as a candidate
match.  Ignore parts with 'Content-Disposition: attachment'.
0 Examples
No examples for email.message/EmailMessage.get_body.
See Also
No see-alsos for email.message/EmailMessage.get_body
0 Notes
No notes for EmailMessage.get_body