exchangelib is a Python package which provides an interface for communicating with a Microsoft Exchange 2007-2016 Server or Office365 using Exchange Web Services (EWS).
Questions tagged [exchangelib]
235 questions
2
votes
1 answer
Python exchangelib push notification?
is it possible push notification in exchangelib ?
I tried get email in inbox and trigger my function,thats is it available exchangelib

onuryartasi
- 587
- 2
- 6
- 13
2
votes
1 answer
exchangelib meetings get Calendar from room email
Im using the exchangelib python module and i am trying to get all meetings linked to a room item. what would i call on the account object to get that?
would i call account.folders[Calendar] or what?

vlad mcandrew
- 189
- 9
2
votes
0 answers
Accessing Shared Mailbox sub folders with exchangelib python
I am trying to use exchangelib in order to monitor an e-mail address from a dedicated server without requiring an instance of Outlook be installed. We want to move the emails to a processed subfolder once completed. I have been able to connect to…

d_bergeron
- 126
- 3
2
votes
1 answer
fetching emails using exchangelib by message_id
I am maintaining an application using exchangelib. I need to be able to move emails to different folders, which is perfectly possible using exchangelib. However, I should give the possibility to my clients to do the same manually. What I want to be…

Hamed
- 474
- 5
- 17
2
votes
1 answer
I cannot install exchangelib on a very restricted system which has no internet connection and it is not possible to create one
During the installation of exchangelib the installation tries to connect to the internet to get dependencies.
On this computer it is not possible to to open the firewalls to provide the access - it is a very restricted system.
Is there a way for an…

Klaus Heubisch
- 21
- 1
2
votes
1 answer
Python exchangelib: check if item is a message or not
I got an error when retrieve items using exchangelib. Is there any method to detect whether the item is an email, and if not, just ignore it? The following code raises AttributeError: 'MeetingRequest' object has no attribute 'flag') since meeting…

Ben Law
- 23
- 3
2
votes
0 answers
exchangelib - traversing and accessing items in archive
I've been trying to access folders and items in my Outlook archive using exchangelib.
I can print out the tree structure in the account with print(account.root.tree()) and iterate over the messages with:
for item in…

McBuch
- 43
- 6
2
votes
1 answer
how can I save an attachment using exchangelib
using Anaconda2-5.0.0-Windows-x86_64, Python2.7, exchangelib 1.10.4
I am trying to save attachments from all emails from an exchange account. It seems I can connect to the account without problem but everytime I try to run through the process, it…

jaesson1985
- 718
- 2
- 11
- 19
2
votes
1 answer
Python Exchangelib connection issue, keyError 20
I'm trying to connect to office365 exchange account using python 3.6 and exchangelib - but I get an error:
exchangelib\version.py", line 102, in api_version
return self.API_VERSION_MAP[self.major_version][self.minor_version]
KeyError: 20
I'm…

Nieumysl
- 109
- 1
- 1
- 11
2
votes
1 answer
How can I get the latest emails from all folders with exchangelib?
Currently, I use
latest_mails = account.inbox.filter(datetime_received__gt=emails_since)
But it seems to miss received emails which are in subfolders.
Printing all folders with
for f in account.root.get_folders():
print(f)
gives something…

Martin Thoma
- 124,992
- 159
- 614
- 958
1
vote
1 answer
How to add multiple embed images in a body email using exchangelib
I have a message in HTML format. I need to reply to this email, keeping all the pictures from the previous email.
I have all the pictures from the email saved, and now I need to add them back. How to do it?
exchabgelib has instructions for…

Alex
- 13
- 2
1
vote
1 answer
Https Connection failure via Proxy Server in Python
I am trying to read and send emails (O365) using OAuth2. This code works fine on my local machine, but
when I am trying to deploy this in a server where there is a proxy to access the internet, I am getting the below…

M. Antoney
- 88
- 4
1
vote
1 answer
exchangelib, traverse all folders and only messages
for shared_postbox in shared_postboxes:
account = Account(shared_postbox, credentials=credentials, autodiscover=True)
top_folder = account.root
email_folders = [f for f in top_folder.walk() if f.CONTAINER_CLASS == 'IPF.Note']
…

Lehas123
- 21
- 5
1
vote
1 answer
Python exchangelib Invalid credentials
I have a python script that pulls attachments from Office 365 mailbox using exchangelib.
It was working fine up until couple of days ago when I started to get an error:
Invalid credentials for https://outlook.office365.com/EWS/Exchange.asmx
I…

goryef
- 1,337
- 3
- 22
- 37
1
vote
1 answer
Getting the name of a folder using Exchangelib
I have looked at:
How to get the parent folder name of Message with Exchangelib python
But have been unable to make this work using the following debugging code:
for item in docdead.all().order_by('-datetime_received')[:3000]: #look into the inbox…

Iain
- 31
- 1