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
0 answers

The event created on the calendar via exchangelib/EWS is duplicated

My project uses exchangelib to create events on my calendar. from exchangelib.items import CalendarItem calendar_item = CalendarItem(folder=kwargs['folder'], subject=kwargs['subject'], start=start, …
Guidev
  • 51
  • 9
0
votes
1 answer

Python Exchangelib - get attachment from email with digital sign (smime.p7m)

I need to receive information about attachments in an email that is digitally signed. I will load the email as follows: email = self.acc.inbox.all().order_by('-datetime_received')[-1] In the standard case after calling email.attachment I see…
exik
  • 3
  • 3
0
votes
2 answers

how to prevent ratelimiterror exchangelib python

Im pulling daily all the emails from some 8 different postboxes via exchangelib. I was using it the whole week but now the code seems to be throttled by the exchangeserver as the error below gets thrown out while its trying to grab the first email.…
0
votes
1 answer

Exchangelib with multithreading python3

I am trying to delete recoverable items in @OUTLOOK/@HOTMAIL many mails very fast I was trying multithreading, but exactly the process of connecting to an mail account and deleting mails going in single thread, as I understand due to logs time from…
0
votes
2 answers

Accessing Exchange inbox using exchangelib from Python with oauth

Since Microsoft has now dropped support for accessing an Exchange mailbox using basic authentication, I've had to upgrade some code to use oauth based access to the mailbox instead. I've setup an Azure AD app following these…
Benjamin Gorman
  • 360
  • 1
  • 11
0
votes
1 answer

How fix this error : exchangelib.errors.InvalidTypeError: 'tzinfo' must be of type

In my Django project, I have bump the Exchangelib version (3.2.1 to 4.9.0) and now an error occurs. Traceback : File "/home/.../workspace/my_project/exchange_manager/models.py", line 297, in create_event event = self.create(*args, **kwargs) …
Guidev
  • 51
  • 9
0
votes
1 answer

Mime_content in reply email (exchangelib, python)

First - I use the exchangelib package to connect to EWS exchange. I will create a reply to the email as follows: msg = acc.inbox.all().order_by('-datetime_received')[-1] mgs.reply_all("Re: Subject", "body of email") But the response created this…
exik
  • 3
  • 3
0
votes
0 answers

python exchangelib FileAttachment not working while attaching multiple files from a list of names

I have the code written below: class SendEmail:     def __init__(self, eSubject, eBody, eAttachmnts=None): self.eSubject = eSubject self.eAttachments = eAttachmnts self.eBody = HTMLBody(eBody)     def setSend(self): …
dig_123
  • 2,240
  • 6
  • 35
  • 59
0
votes
1 answer

exchangelib ews throttling policies python

I am trying to build a database with all the emails. But I get the Error: ErrorServerBusy: The server cannot service this request right now. Try again later. Is there any way to work with the throttling policy of ews? One month of emails do work…
0
votes
0 answers

exchangelib.errors.ErrorNonExistentMailbox: The SMTP address has no mailbox associated with it

I am trying to send mail from o365 user mailbox in python using exchangelib library. I am getting "exchangelib.errors.ErrorNonExistentMailbox: The SMTP address has no mailbox associated with it" this error. credentials =…
0
votes
1 answer

exchangelib OAUTH authentication NonExistentMailbox error

I have a Python script that is reading Office 365 emails and downloading attachments. I am using exchangelib and trying to switch from Basic Authentication to OAUTH2. My old script was authenticating without any issues: from exchangelib import…
goryef
  • 1,337
  • 3
  • 22
  • 37
0
votes
1 answer

exchangelib consistently returns 'QuerySet' object has no attribute 'iterator' when using chunkify

Problem: When using exchangelib for large amounts of emails(in this case 10K+) the entire set is attempted to be loaded. I have tried to employ chunkify: from exchangelib import Credentials, Account for item in account.inbox\ …
0
votes
0 answers

Script blocking in the Listener event

I'm trying to get the last email receirved using exchangelib listener; the probleme here is that the code not printing the seconde print(account.inbox.all().count()) , and the first print(account.inbox.all().count()) printinig it fine, see the…
bfs
  • 1
  • 1
0
votes
0 answers

read +60k mails from exchange server

I'm using python (Exchangelib) to read all emails; it's working fine, the question is my inbox folder has +60K email; is there a way to get theme all ? i tryed this using 1000000 but it's not getting all the emails for item in…
bfs
  • 1
  • 1
0
votes
1 answer

Python Exchangelib: Automate Enabling Attachments Due to Default Security Settings

I have an Exchange mailbox for python/exchangelib to scan emails from the Inbox and download select attachments for additional processing. It runs fine. However, recently one recurring email from the same sender that includes an Excel spreadsheet…
JRomeo
  • 171
  • 1
  • 8