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
1
vote
2 answers

exchangelib bug: Message object has no attribute item_id

Although I've been happily running this script for best part of a year, i recently upgraded to Catalina OSX and reinstalled Exchangelib. Now I get an error with item_id: 'Message' object has no attribute 'item_id' Here's my code, I would love to…
1
vote
1 answer

need equivalent function to get Alias in exchangelib Python like this one in win32com (item.sender.getexchange().Alias)

I was fetching mails locally using win32com library but now I am using exchangelib to do the same but I cannot find a funtion equivelant to this one (item.sender.getExchangerUser().Alias) how can I do this by exchangelib ?? I am also tried this for…
1
vote
1 answer

Python exchangelib - exporting items from Inbox folder to csv

I'm using exchangelib and works well but when I'm trying to export item information such as: data= ("Inbox", item.datetime_received, item.sender, item.subject) When I use print all items are displayed as expected, each email in new line: Inbox…
Jack84
  • 79
  • 1
  • 1
  • 7
1
vote
0 answers

Python exchangelib - How to save outlook email (.msg) attachments from email

I am currently working on automation solution with Python to read an incoming Outlook emails and download any attachments. I am using exchangelib library to achieve this. I am able to the read email body and able to save file attachments (.pdf,…
Sumanth C
  • 25
  • 5
1
vote
0 answers

In exchangelib I get NoneType error when there are no emails

In my python script I am trying to scan my inbox retrieve emails in reverse date-time order and by filtering on a subject. However, if my inbox has no emails with that subject, I get a NoneType error, object is not iterable" If there is an email…
1
vote
0 answers

Python: Microsoft Exchange Approve/Reject email via EWS(using exchangelib)

Tell me please, is there an opportunity to approve/reject moderated emails in ms exchange directly from python? Now I am studying the exchangelib library, but I have not found a solution yet. Thanks!
klem4
  • 367
  • 2
  • 6
1
vote
0 answers

Is it possible to send an email with exchangelib with no sender (or noreply)?

I want to send a warning email to a user. In my company we have an exchange server, but I dont have a dedicated account for my app. So, I would like to send a message with a noreply sender or an invented sender. Is it possible? How to config the…
O Pardal
  • 647
  • 4
  • 21
1
vote
1 answer

How do I filter out or skip meeting responses in my inbox using ExchangeLib? Currently getting AttributeError

I need to iterate through emails in my outlook inbox and get attributes like the subject, sender and date. However, I get an AttributeError (that I am unable to catch using exception handling) whenever I encounter a calendar meeting response in my…
kalidurge
  • 279
  • 2
  • 11
1
vote
1 answer

How to add members to a distribution list using exchangelib

How to add members to a distribution list in exchange2010 using python exchangelib? Any other library available to perform these tasks?
Sheik Kalidh
  • 33
  • 1
  • 8
1
vote
1 answer

How do I filter inbox and only download emails that have attachments

I am filtering a fairly large inbox using exchangelib. I only want to look at emails that have attachments. I tried to add the attachments=True clause in the filter but it does not work. Below is my code. Could someone tell me what is the correct…
1
vote
1 answer

Python ExchangeLib Update Calendar Item reminder_is_set

All, I am new to Python, and I am having issues updating the reminder_is_set property on calendar items. I am trying to get my calendar items from now and 7 days ahead and turn off the reminders. I can get the calendar items in the view just fine. I…
jaxmeier
  • 499
  • 4
  • 13
1
vote
2 answers

Trying to print email subject and datetime to txt file after sending email

I'm trying to create a program that will send and email while also logging to a text file the email's subject line and date/time it was sent. Here is what I have so far. def send_email(): from exchangelib import Credentials, Account, Message,…
JK72
  • 149
  • 1
  • 8
1
vote
1 answer

Exchangelib library does not download email body in html format

I have written code to download MS exchange server email body as html using exchangelib library but it has downloaded html content without <> bracket import datetime from exchangelib import ServiceAccount, Account, Configuration, DELEGATE from…
1
vote
1 answer

python:exchangelib:RHEL 6: GLIBC_2.14 issues

I am building my python artifact on a RHEL 7 machine as the company policy says so. When we deploy the artifact to RHEL 6 machine as the project demands it. I am hitting the error as shown below. Any idea what can be done to prevent the issue? I…
Abhishek Bm
  • 73
  • 1
  • 7
1
vote
1 answer

I can't read exchange calendar with exchangelib

I'm sorry I don't just see what I'm doing wrong (most likely plenty). All I am attempting to do is read the events of a public calendar. I tried to follow the discussions on using public folders but it was a little confusing for a newbie. Using…
Johnf
  • 75
  • 9