aboutsummaryrefslogtreecommitdiffstats
path: root/python/exchange_example.py
blob: c253d7b40e52db9414ffb412199428418672c2e3 (plain)
1
2
3
4
5
6
7
8
from exchangelib import Credentials, Mailbox

credentials = Credentials(username='LEEMUNDER\\ghorel', password='')
config = Configuration(server='autodiscover.lmcg.com', credentials=credentials)
account = Account(primary_smtp_address='ghorel@lmcg.com',config=config, autodiscover=False, access_type=DELEGATE)
folder = account.root.get_folder_by_name('Citi')
for item in folder.all():
    print(item.subject)