Home
last modified time | relevance | path

Searched refs:richest (Results 1 - 1 of 1) sorted by relevance

/third_party/python/Doc/includes/
H A Demail-read-alternative.py43 # We can extract the richest alternative in order to display it:
44 richest = msg.get_body() variable
46 if richest['content-type'].maintype == 'text':
47 if richest['content-type'].subtype == 'plain':
48 for line in richest.get_content().splitlines():
51 elif richest['content-type'].subtype == 'html':
52 body = richest
54 print("Don't know how to display {}".format(richest.get_content_type()))
56 elif richest['content-type'].content_type == 'multipart/related':
57 body = richest
[all...]

Completed in 1 milliseconds