exchangewebservices

API equivalent for New-MailContact

人盡茶涼 提交于 2020-03-03 07:27:06
问题 Is there an API equivalent (like EWS) for the New-MailContact cmdlet, which would allow me to create an Exchange 2010 mail contact from an existing AD contact? I know that I could invoke a PSSession, but I need a solution that (i) works remote and (ii) does not require admin privileges, i. e. must be configurable via ACLs or roles. 回答1: I'm pretty sure there's not. However, the New-MailContact commandlet is really only changing attributes on an AD object. Therefore you can use LDAP commands

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

Send Voting Email

女生的网名这么多〃 提交于 2020-01-30 05:01:32
问题 Using the Outlook API it is possible to send emails with polls by setting the VotingOpions property on a MailItem instance. Is it possible to do the same with Exchange Web Services in any way? 回答1: Microsoft have published the format of voting emails, but Exchange Web Services does not provide an interface for them so you will need to roll your own. The data can be accessed via Extended Properties: PidLidVerbStream: new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 0x00008520,

Send Voting Email

百般思念 提交于 2020-01-30 05:01:14
问题 Using the Outlook API it is possible to send emails with polls by setting the VotingOpions property on a MailItem instance. Is it possible to do the same with Exchange Web Services in any way? 回答1: Microsoft have published the format of voting emails, but Exchange Web Services does not provide an interface for them so you will need to roll your own. The data can be accessed via Extended Properties: PidLidVerbStream: new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 0x00008520,

Exchange Web Service FolderId for a folder created by user

大憨熊 提交于 2020-01-25 21:57:25
问题 I have a folder in an Exchange mailbox that is a child of the root and is created by user. How do I find such a folder using EWS managed API? I tried using deep traversal, but I can't find the folder. Edit: Here is the code I am using to get the folder created by user: ExchangeService server = new ExchangeService(ExchangeVersion.Exchange2007_SP1); server.UseDefaultCredentials = true; string configUrl = @"https://yourServerAddress.asmx"; server.Url = new Uri(configUrl); // set View FolderView

Exchange Web Service FolderId for a folder created by user

时光毁灭记忆、已成空白 提交于 2020-01-25 21:57:06
问题 I have a folder in an Exchange mailbox that is a child of the root and is created by user. How do I find such a folder using EWS managed API? I tried using deep traversal, but I can't find the folder. Edit: Here is the code I am using to get the folder created by user: ExchangeService server = new ExchangeService(ExchangeVersion.Exchange2007_SP1); server.UseDefaultCredentials = true; string configUrl = @"https://yourServerAddress.asmx"; server.Url = new Uri(configUrl); // set View FolderView

Get unread emails from exchange in Windows 8 Store App

微笑、不失礼 提交于 2020-01-25 05:43:55
问题 I want to write an App (Windows Store App) which should display all my unread emails. I did my research at google and msdn but found nothing suitable. The problem is as follow, my development pc does not have any connection to a exchange server, so I had to write an app (C#/XAML) which should later on work: On every PC in the organisation Uses the default credentials of the user Displays the unread emails Is it possible to get these information (Emails) by asking the EWS? Is there a WinRT

EWS - This operation can't be performed because one or more items are new or unmodified

ぃ、小莉子 提交于 2020-01-25 02:55:50
问题 Relating to a batch update question I asked previously about using a single update to mark as read all the unread emails, I could use ExchangeService.UpdateItems according to Jason's answer. So I modified accordingly: Folder.Bind(Service, WellKnownFolderName.Inbox); SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false)); //ItemView limits the results to numOfMails2Fetch items FindItemsResults<Item>

Get to an Exchange folder by path using EWS

坚强是说给别人听的谎言 提交于 2020-01-24 09:49:07
问题 I need to retrieve items from the 'Inbox\test\final' Exchange folder using EWS. The folder is provided by a literal path as written above. I know I can split this string into folder names and recursively search for the necessary folder, but is there a more optimal way that can translate a string path into a folder instance or folder ID? I'm using the latest EWS 2.0 assemblies. Do these assemblies provide any help, or am I stuck with manual recursion? 回答1: Since Exchange Server likes to map