awangga / outlook

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

Not able to read all emails #26

Open shankch opened 4 years ago

shankch commented 4 years ago

How do I read all emails inside the inbox and not just the latest email

AnthonyAnicotte commented 3 years ago

Hi,

You can use mail.allIds() to get the IDs of your emails stored in your inbox. You can get unread emails using mail.unreadIds. Once you have your desired ID, use the method mail.getMail(ID) to get the mail content.