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

ExchangeLib: getting error object has no attribute 'id'

In ExchangeLib, while trying to get the messages in my mailbox, I am hitting the following error: AttributeError: 'ErrorItemNotFound' object has no attribute 'id' Code that I am executing: for folder in root.walk(): for message in…
0
votes
1 answer

Sending a password protected file over exchangelib

I need to send a daily email with an excel file that must be password protected. I have been using exchangelib for my email needs so far. I would prefer not to switch / add a different library if possible. sending emails with attachments has not…
0
votes
1 answer

Getting AttributeError: sender while iterating to get specific values

Getting "AttributeError: sender" is thrown as the exchange query iterates. Same with other values (message_id, etc) too. My only option at this point is to put a try/catch around it and need to refactor a lot of content under the loop. However, I…
RajSoundar
  • 341
  • 1
  • 2
  • 8
0
votes
1 answer

ErrorSchemaValidation upon multiple filter queries on email subject (due to "The maximum read depth (32) has been exceeded")

I have a need to filter out emails with subjects that contain any of the several strings in a list I configure. I try building my query as follows with several Q expressions since there is no support currently (last I checked) for querying like…
RajSoundar
  • 341
  • 1
  • 2
  • 8
0
votes
1 answer

Reading customized tags/flags in outlook using ExchangeLib in Python 3.7

I am reading the mails in outlook which contains customized tags/flags. Among which one is tag "Approved". I am trying to access the mail from particular sender whose tag is "Approved" using ExchangeLib Library in python. I tried with multiple…
0
votes
1 answer

Exchangelib Scan All Folders - Efficiency

I am using exchangelib to connect to my exchange mailbox. Currently the code is scanning through all folders since the target email message can be in any of the folders for my task. Is there a more efficient way for looping/scanning the folders…
Ian Percy
  • 3
  • 3
0
votes
1 answer

Display certain email in Outlook using Python

I have built a script that analyze my outlook inbox mails using Python + Exchangelib. It screens my email inbox e.g. from the last 2 days with some conditional statements and the output would be all emails that need my attention and its attributes…
gunardilin
  • 349
  • 3
  • 12
0
votes
1 answer

Find emails that haven't been replied with Python & Exchangelib

Currently I am using Python and Exchangelib module to build a macro that shows emails that haven't been replied. Background for the macro: A support group of 3 peoples get daily lot of emails from customers to "support@abc.com". One of 3 peoples…
gunardilin
  • 349
  • 3
  • 12
0
votes
1 answer

Request Read Receipt with Python/Exchangelib?

My first post so please excuse any ignorance on my part. I have had great success with email automation using Exchangelib. I am curious to know if there is a configuration option to request a read or delivery receipt? I have spent the last few days…
0
votes
0 answers

Cannot delete Room Calendar item with exchagelib code

My problem looks weird. Exchange 2010 SP1. Code looks for conflicting record in Room Calendar and suposed to delete it. Code looks like: #DELEGATE also doesn't work roomAccount = Account(primary_smtp_address=room_mailbox, config=config, …
Dadudki
  • 37
  • 4
0
votes
1 answer

Python Exchangelib read attached email

I'm having some trouble to figure out how to read an attached email inside a email. I can save it as an attachment, but what I really trying to achiev is read the content of that email. Some background: I got a customer who sends me data using email…
Hugo Vares
  • 977
  • 7
  • 7
0
votes
1 answer

Error using python 3.8 exchangelib in kivymd on Android

I use exchangelib for access to my mail in exchange from kivymd in python. When I run my code on computer, it work without problem. But, when I deploy it via buildozer on Android and start my application on Android, I see resolver error. Please…
andy_111
  • 1
  • 1
0
votes
1 answer

MemoryError when fetching email with exchangelib

I have a question regarding saving email data in batches using exchangelib. Currently it is taking a lot of time if there are many emails. After a few minutes it throws this error: ERROR: MemoryError: Retry: 0 Waited: 10 Timeout:…
Chandan
  • 217
  • 1
  • 3
  • 17
0
votes
1 answer

conditional count of ews inbox - exchangelib query

I have a requirement to know how many Messages(preferably) exist in an Inbox since a certain date, before actually retrieving them. I read about and experimented with account.inbox.total_count via the Exchangelib PyPI site. However, I am unable to…
0
votes
1 answer

How do I use exchangelib to connect to work email that uses Outlook Web App (OWA)?

I am currently trying to find ways to connect to my work email through a language and python seems to have a library I am looking for. I found the exchangelib library but it is a bit older and I couldn't find anything else to connect to an Exchange…