Lines Matching defs:richest
43 # We can extract the richest alternative in order to display it:
44 richest = msg.get_body()
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.get_body(preferencelist=('html'))
58 for part in richest.iter_attachments():
69 print("Don't know how to display {}".format(richest.get_content_type()))