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
1 answer

Filter messages from ALL folders in an account with exchangelib

I am trying to use exchangelib to retrieve messages from a account that match\starts with a particular subject. This must include messages from all folders and not just the 'inbox' folder. I went through a couple of similar questions here How can I…
codeoverflow
  • 71
  • 1
  • 5
1
vote
0 answers

Exchangelib item.sender returns bytes

I'm having an issue recently with some values returned from item.sender - attached is a screen dump As you can see in the lower portion of the graphic, it's not the usual form returned by item.sender which usually is of form:…
1
vote
1 answer

How can I send attachments in an email reply?

I'm using the exchangelib package to connect to Exchange. I need to send attachments in a reply. When I send a normal message I add the attachment to the Message object like this: message = Message() message.account = account message.subject =…
1
vote
0 answers

Python Exchangelib / How to access public folders

I'm having some problems trying to connect to a public folder with exchangelib. I'm using Python 3.6 and exchangelib 1.11.4. I'm already connected and I'm able to load mails from the inbox. I'm trying to access the public folders like…
Kleath
  • 31
  • 4
1
vote
2 answers

Exchangelib stream notification handle event

So I am using the exchangelib fork from pull request #355 where stream notification is implemented. In my code i have gotten the conversation id and created a streaming subscription def event_catch(self,account): id = "" ids =…
1
vote
1 answer

Read out subfolder of inbox using exchangelib

is it possible to read out the body of an email that is in a subfolder of the inbox using exchangelib? If yes, how can I achieve that? I only know that I can get the body of an email which is in the inbox using the following code: for item in…
O. Schultz
  • 155
  • 1
  • 3
  • 12
1
vote
0 answers

Exchangelib: How to iterate over all emails in a folder

I need to iterate all emails in a folder, eventually exporting to CSV format. Here's the important bits of code: credentials = ServiceAccount(user, password) ... qs = account.inbox.all() qs.page_size = 100 qs.order_by('-datetime_received') emails =…
03T
  • 49
  • 1
  • 10
1
vote
0 answers

EWS exchangelib python: Unable to extract the content of an email using '.body' attribute

This is the email output when I ran '.body' on my email object. I got the following output: Sender: xxxxxxxxx.com Subject: yyyyyyyy Message-Id: xxxx-xxxx-xx-xxx-xxx@mail.outlook.com> To: xxxxxxx.com instead of the email body text. Am i missing…
1
vote
2 answers

Exchangelib: Create subfolder of subfolder of inbox

Hello I'm currently working with exchangelib. Right now I want to create a subfolder of a subfolder of the inbox and I don't know if it's possible, yet. So I just want to ask if anyone knows more about my problem? My code for creating a subfolder of…
O. Schultz
  • 155
  • 1
  • 3
  • 12
1
vote
1 answer

Exchangelib - Get meeting organizer mail

I'm currently using the exchangelib library in python. I would like to compare the mail of the account connected to exchangelib and the mail of a meeting organizer. I can have the account mail by typing "account.primary_smtp_address" but I don't…
Elweiss
  • 545
  • 1
  • 4
  • 12
1
vote
0 answers

exchangelib get task from task queryset MIME conversion is not supported for this item

I am trying to access an object through a queryset created with exchangelib however I get an error MIME CONVERSION IS NOT SUPPORTED FOR THIS ITEM, I don't know what it means. I have tried the same code with calendar items and I have no problem…
Miguel Rosales
  • 769
  • 4
  • 13
  • 29
1
vote
1 answer

Pass multiple email addresses into exchangelib

I am usng exchangelib in conjunction with Django 1.11 to manage Calendar items. Can anyone provide any guidance on the best way to pass emails to the required_attendees of CalendarItem in my views.py file? required_attendees =…
cr1
  • 199
  • 2
  • 16
1
vote
2 answers

How can I distinguish between attachment types in exchangelib?

I've just noticed that Microsoft OWA does not display some attachments. Some people use images in their footer (which are attachments). I'm not sure if the only difference between a "normal" attachment and this emedded attachment is that it is…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
1
vote
1 answer

What is the changekey of Messages in exchangelib?

I am trying to give the users additional information about emails they received in form of an email in the same conversation. What I do from exchangelib import Message # Works: account = Account(primary_smtp_address=smtp_address, config=config, …
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
1
vote
1 answer

Can I rename an attachment of a received email via exchangelib?

I want to rename the attachments of some files I receive on an Exchange server. Is this possible? What I've tried from exchangelib import ServiceAccount, Configuration, Account, DELEGATE from exchangelib import FileAttachment from config import…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958