awangga / outlook

Python library to read email from live, hotmail, outlook, office365 or any microsoft email service
347 stars 135 forks source link

Message body is returned in raw format and requires base64 decode. #12

Closed t04glovern closed 7 years ago

t04glovern commented 7 years ago

When returning and printing the message body it is returned in base64 encoded format.

I'm not sure if it was your intention, but I thought I'd add a function that optionally allows you to return the mail body in a decoded format

mail = outlook.Outlook()
mail.login(FROM_EMAIL, FROM_PWD)
mail.inbox()
mail.unread()
print(mail.mailbodydecoded())

Based on information here: https://stackoverflow.com/questions/24597906/email-body-is-returned-as-encrypted-text-how-do-i-read-the-actual-message

awangga commented 7 years ago

accepted merge req #12 thanks for your contribution