Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Obtain BODYSTRUCTURE call
- data, result = imap_instance.uid('fetch', email_uid, '(BODYSTRUCTURE)')
- part_body_index, part_charset = parse_BODY_index_and_charset_from_response(data)
- text_part, result = imap_instance.uid('fetch', email_uid, '(BODY['+str(part_body_index)+'])')
- if len(part_charset) > 0:
- try:
- text_part = text_part.decode(part_charset, 'ignore')
- except:
- pass
- # Content of "text_part" variable after this should be text with no encoded characters...
- # But that's not the case
- A 05/04/2013, =E0s 11:09, XYZ escreveu:>
- In=EDcio da mensagem reenviada:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement