ews-managed-api

EWS Managed API 1.1 - Pull Subscriptions Memory Leak

那年仲夏 提交于 2020-02-04 09:01:35
问题 Has anyone else discovered a memory leak issue with Pull Subscriptions ( ExchangeService.SubscribeToPullNotifications() ) in Exchange Managed Web Services API? When calling PullSubscription.GetEvents() the memory utilization climbs 4K with nearly every polling call. The only way I've been able to keep the memory utilization down is by forcing garbage collection (via GC.Collect() ) after every call - an unnecessary path. I am surprised to see the API hasn't changed for almost a year. 回答1: This

EWS Managed API 1.1 - Pull Subscriptions Memory Leak

我与影子孤独终老i 提交于 2020-02-04 09:01:18
问题 Has anyone else discovered a memory leak issue with Pull Subscriptions ( ExchangeService.SubscribeToPullNotifications() ) in Exchange Managed Web Services API? When calling PullSubscription.GetEvents() the memory utilization climbs 4K with nearly every polling call. The only way I've been able to keep the memory utilization down is by forcing garbage collection (via GC.Collect() ) after every call - an unnecessary path. I am surprised to see the API hasn't changed for almost a year. 回答1: This

Office 365 EWS does not return X-BackendOverrideCookie

假如想象 提交于 2020-01-23 10:51:27
问题 Office 365 does not return the X-BackendOverrideCookie in response headers. I set the X-AnchorMailbox and X-PreferServerAffinity in the request headers properly. This does not trigger X-BackendOverrideCookie to be returned, as it says in MSDN. Why is this happening? Meanwhile, I tried the same thing with an on-premise Exchange 2016. Here I don't even set the X-AnchorMailbox and X-PreferServerAffinity and I get back the X-BackendOverrideCookie in each response. This is not good either, since I

Office 365 EWS does not return X-BackendOverrideCookie

左心房为你撑大大i 提交于 2020-01-23 10:51:10
问题 Office 365 does not return the X-BackendOverrideCookie in response headers. I set the X-AnchorMailbox and X-PreferServerAffinity in the request headers properly. This does not trigger X-BackendOverrideCookie to be returned, as it says in MSDN. Why is this happening? Meanwhile, I tried the same thing with an on-premise Exchange 2016. Here I don't even set the X-AnchorMailbox and X-PreferServerAffinity and I get back the X-BackendOverrideCookie in each response. This is not good either, since I

EWS Managed API - Save Draft with inline Images

守給你的承諾、 提交于 2020-01-15 06:07:46
问题 I am trying to create emails for my users using EWS Managed API 1.1, and need to use email templates our designers have created. I was able to successfully attach image ( say header.png ) and add an image tag like this ( using cid: before the image name ) in the html body. <img width=683 height=27 src="cid:header.png" alt="Header"> This works when I use msg.SendAndSaveCopy() method. It renders perfectly fine in both Sent Mail folder and the recipients inbox. However it is not working when I

EWS Managed API - How to copy items from one mailbox to other

只愿长相守 提交于 2020-01-14 14:39:31
问题 I am writing an application(C#) to sync contacts,appointments,tasks etc from one mailbox to other. I am able to retrieve changes to these items using SyncFolderItems but could not find a way to copy the changes to a different mailbox. It looks like I have to create a new item for each of these types on the destination mailbox. If that is the case how do I get all the properties on the source item onto the new item on the destination. I am currently using exchange 2007 sp1 environment and want

Save mail to msg file using EWS API

半腔热情 提交于 2020-01-08 17:35:10
问题 I'm using Exchange Web Services Managed API 1.1 to connect to Exchange server 2010 and then find out new emails received. Now I want to save a copy of the .msg file to a folder on the disk. I do not want to use any paid third party to integrate. Any help will be appreciated. 回答1: If you are happy to save into the .eml format instead, it can be done very easily just using EWS and no third party libraries. The .eml file will contain all the same information and can be opened by Outlook in the

EWS API Search Filter does not return all information

浪尽此生 提交于 2020-01-06 18:30:47
问题 I have the following scenario: I check a mailbox to which emails with some relevant information are sent to to get the information from it. I use a lot of search filters to find the specific email and to get the correct one: var collection = new SearchFilter.SearchFilterCollection(LogicalOperator.And); collection.Add(new SearchFilter.ContainsSubstring(ItemSchema.Body, "text1", ContainmentMode.Substring, ComparisonMode.Exact)); collection.Add(new SearchFilter.ContainsSubstring(ItemSchema.Body,

How to retrieve all contacts from Microsoft Exchange using EWS Managed API?

ぃ、小莉子 提交于 2020-01-06 02:29:05
问题 all I need to do is to retrieve all contacts from Microsoft Exchange. I did some research and the best possible option for me should be to use EWS Managed API. I am using Visual Studio and C# programming leanguage. I think I am able to connect to Office365 account, because I am able to send a message in a program to specific email. But I am not able to retrieve the contacts. If I create a contact directly in source code, the contact will be created in Office365->People aplication. But I don't

Bind custom extended property for existing appointment using EWS managed API 2.0

醉酒当歌 提交于 2019-12-31 03:26:11
问题 I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments(): var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView); and than i go trough all appointments using foreach loop: foreach (var appointment in appointments) for all appointments which doesn't have extended property: if (appointment.ExtendedProperties.Count <= 0) i bind a custom extended property and setting its value with