Python email quoted-printable encoding problem

You could/should use the email.parser module to decode mail messages, for example (quick and dirty example!): from email.parser import FeedParser f = FeedParser() f.feed(“<insert mail message here, including all headers>”) rootMessage = f.close() # Now you can access the message and its submessages (if it’s multipart) print rootMessage.is_multipart() # Or check for errors print rootMessage.defects … Read more