Ani Menon Ani Menon - 1 year ago 710
Python Question

How to get all mails from MS exchange in Python?

I want to view all the mails I have received on MS Exchange/OWA. Is there a way to do this using Python?

I do see few solutions in C#/Java.

But how may I do it in Python?
A similar question is Connect to exchange with python, but I am not able to understand how to do it.

Answer Source

There's no tutorial for that, and no Python packages support the inbox, AFAIK.

UPDATE: I went ahead and implemented the inbox in the Python EWS package I maintain ( Here's a simple example:

from exchangelib import DELEGATE, Account, Credentials

creds = Credentials(
account = Account(

for message in account.inbox.all():
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download