Questions tagged [exchangelib]

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).

See also

235 questions
0
votes
1 answer

Select single file from multiple downloaded file from an email using exchangelib

I m new to python, I m working on extracting text from .pdf and Docx after downloading files from an email using exchangelib but one email format has 2 attachments and I want to select only 2nd file. for item in recent_emails: for attachment in…
grLearn
  • 43
  • 1
  • 6
0
votes
1 answer

Any way to find the reply codes for sending mails in exchangelib

Example : How smtp has different reply code 510/511 : Bad email address. Is there a way in exchangelib to catch such sort of exceptions as well?
Mischief
  • 1
  • 2
0
votes
1 answer

requests/exchangelib SSLError - hostname 'outlook.office.de' doesn't match either of

I'm having problems connecting to the Microsoft Exchange. It started recently. The problem is that I'm not sure where to look for the solutions. The problem is that I'm trying to connect to office.de but the certificate seems not to include this…
Milano
  • 18,048
  • 37
  • 153
  • 353
0
votes
2 answers

Is possible to retrieve data and download files from outlook without password using ExChangeLib (EWS)?

I'm trying to access data from Outlook and can download files from exchangelib with a password. But I'd like access without a password. Do we've any alternate for this stuff?
0
votes
1 answer

Library error on docker container (AWS Lambda)

I'm looking to execute a python script on AWS Lambda using a Docker container loaded on AWS ECR. I've managed to create a docker container starting from the amazon image they recommend using for a python script. This is the Dockerfile: # Copy…
0
votes
1 answer

Sync inbox between two accounts

I'm experimenting with the exchangelib. What I'm trying to do is, sync the mails from the inbox folder, between to mailboxes. I'm not sure if my way is the right one, but my idea is to use sync_items() on the source account and then safe it to the…
Suzabi
  • 11
  • 2
0
votes
1 answer

Python ExchangeLib is not working due to the backports.zoneinfo.ZoneInfo error

I'm trying to send an email to outlook using ExchangeLib. However, it got failed with the below error. File "DeliverEmailResult.py", line 31, in __init__ credentials=Credentials(self._from_user, self._password), File "C:\Users\..\Email…
Aaditya R Krishnan
  • 495
  • 1
  • 10
  • 31
0
votes
1 answer

How to use delegate access type while impersonating a user in EWS?

Is it possible to combine delegate and impersonation access types? Example: Using service account credentials to impersonate Bill, I need to access Jane's calendar using Bill's permission levels. Because I have the service account credentials, I…
ZZZZZ
  • 3
  • 1
0
votes
1 answer

What is the recommended way to access shared *personal* calendars in EWS?

I am using Exchangelib with service account credentials to impersonate individual EWS users. I am able to retrieve a list of calendars the user has access to, but this list does not include personal calendars shared with the user. Example: Jane has…
ZZZZZ
  • 3
  • 1
0
votes
2 answers

exchangelib.errors.ErrorNonExistentMailbox: when trying to access exchange with Python

I am pretty new to python and I am trying to do the following: Use a python script to list the last 10 emails in a specific folder on exchange, however I keep getting the the following error exchangelib.errors.ErrorNonExistentMailbox: No mailbox…
Dunner1991
  • 19
  • 3
0
votes
1 answer

Embedded graphics in original mail change to attached graphics in reply when using exchangelib in python

We have a python script that replies to incoming emails using exchangelib. User A sends us an email that can contain a picture/graphic (e.g. company logo in signature line). Our script is able to reply to his mail, and user A will get our reply.…
simon
  • 11
  • 1
0
votes
1 answer

How to get outlook mailbox space using python exchangelib

My company is using Microsoft Exchange server 2016. Each mailbox only has 1G space allocated. How can I get the mailbox usage information using python exchangelib? I am using Python 3.9.5 with exchangelib 4.4. I can use exchangelib to send and…
nngeek
  • 1,912
  • 16
  • 24
0
votes
0 answers

Unable to effect generator in exchangelib for loop

I am unable to succeed in getting a server-side generator to yield to a client-side javascript while for looping through exchangelib items. I'm going in circles. The progress bar does not progress beyond the initial 9% - set by the bar_min variable…
0
votes
1 answer

Get Office 365 Mailboxes and Groups from Python

A coworker made a working PowerShell script to retrieve Mailboxes and Groups from Office 365. We have both admin rights on Office 365 = I can get all of these information with a internet browser on EAC. When I'm executing the PowerShell script with…
0
votes
0 answers

Exchangelib - How do i know if account has administrative rights?

I believe the question subject explains what i'm trying to achieve. i intend build an app that is wrapped around the python microsoft exchange library and i would like to display different options to the user depending on whether they have…