exchangewebservices

Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files

半城伤御伤魂 提交于 2019-11-28 09:05:51
I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml . The problem is in fetching (1) all mails with (2) all headers (like from, to, subject) (I am keeping information of those values of from , to and other properties somewhere else, so I need them too) and (3)byte[] EmailMessage.MimeContent.Content . Actually I am lacking understanding of Microsoft.Exchange.WebServices.Data.ItemView , Microsoft.Exchange.WebServices.Data.BasePropertySet and Microsoft.Exchange.WebServices.Data.ItemSchema thats why I am finding it difficult. My primary code is: When I create

Creating Tasks for other users using Exchange Web Services (EWS) Managed API

一曲冷凌霜 提交于 2019-11-28 06:35:43
As an "EWS Managed API Newbie", I'm having some problems finding examples and documentation about creating and managing Tasks. I've managed to create a task for myself without a problem. However, I really need to be able to do the following - if anyone could give me any pointers I'd really appreciate it... Create a Task and assign it to another user. Be able to interrogate the status of that task (percent complete, etc) whilst it is assigned to that user. Update the notes on the task at any time. Thanks in advance for any pointers! Chip McCormick The code in this post worked for me Pasting

How to 'set' read-only calendar appointment properties (related to meetings)?

我只是一个虾纸丫 提交于 2019-11-28 06:17:12
问题 I'm recreating calendar meeting events in a sychronization tool (using CreateItem ), basically preserving some properties for meetings and writing them back. However, there are some properties that are read-only, and I see no way to preserve their state: IsMeeting IsCancelled MeetingRequestWasSent IsOnlineMeeting Some of these boolean values are stored in property AppointmentState , but that is read-only too: Name Bit Description None 0x0000 No flags have been set. This is only used for an

how to notice if a mail is a forwarded mail?

冷暖自知 提交于 2019-11-28 04:57:20
问题 I have a very special problem. If we create a mail in Outlook, we add a UserProperty which contains a DataBase-ID of our System, so we can Link the mail to the representing DataBase-Item. On the service which reads the mails in each Mailbox and imports them automatically I can read this property by using ExtendedPropertyDefinitions. So far everything is fine... If the User now forwards the message in Outlook, Olk copies the UserProperty to the new message. And now my problems beginn. Now my

Could not establish the connection to the Exchange Web Service - Java API

≡放荡痞女 提交于 2019-11-28 04:31:31
问题 I am testing the Microsoft Exchange Web Service Java API (version 1.2) to read mails from a server. Here is my code: String url = "https://my-server/EWS/exchange.asmx"; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.setTraceEnabled(true); service.setCredentials(new WebCredentials("user", "password")); service.setUrl(url.toURI()); Mailbox mailbox = new Mailbox("foo@bar.com"); FolderId folder = new FolderId(WellKnownFolderName.Inbox, mailbox); ItemView

EWS: Access shared calendars

不打扰是莪最后的温柔 提交于 2019-11-28 04:03:07
问题 I am trying to use Exchange Web Services to access calendar data, but I can't seem to figure out how to access calendars which have been shared by other users when it is not their default calendar. Assuming another user in my company created a shared calendar and shared it with me, I can't even find the calendar folder, let alone get the items within it. The answers can be in terms of the EWS Managed API (version 1.0 or 1.1), the service objects directly, or even just the XML body of the SOAP

Error “HTTP/1.1 401 Unauthorized” with basic authentication in android - EWS 2010

耗尽温柔 提交于 2019-11-28 02:28:43
问题 I refer to this link to request to the server. The problem is sometime (not always, about 20% - 30%, means sometime I can get successful response), I got the 401 error and server response basic authorization challenge expected, but not found . Here is my code: HttpRequestInterceptor preemptiveAuth = new HttpRequestInterceptor() { public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException { AuthState authState = (AuthState) context .getAttribute

Exchange Web Services Java APi + RESTful Push Notifications Listener

删除回忆录丶 提交于 2019-11-28 02:07:17
问题 i'm trying to make my listener work with the ews java API but i can't.. I hope you can help me ! I've done the following steps: 1)Connect to the exchange web service ExchangeService newService = new ExchangeService(ExchangeVersion.Exchange2010_SP2); newService.setUrl("https://myurl/ews/Exchange.asmx"); ExchangeCredentials credentials = new WebCredentials("user","password"); newService.setCredentials(credentials); 2) Then subscribe to the push notifications: @Override public PushSubscription

Exchange Web Services (EWS) FindItems within All Folders

泪湿孤枕 提交于 2019-11-27 23:15:04
问题 I am using the following code to find all the emails sent from a user, however this only searches the main Inbox folder and doesn't check any sub-folders. I would like to search all the mail items including any sub-folders. I have tried the WellKnownFolderName.Root and WellKnownFolderName.Inbox and these only search those folders, not the sub-folders. private static void SearchItems(string email) { ItemView iv = new ItemView(10); FindItemsResults<Item> fiitems = _service.FindItems

Exchange Web Service FolderId for a not well known folder name

痞子三分冷 提交于 2019-11-27 21:33:57
问题 I have a folder in an Exchange mailbox that is a child of the root (not Inbox). How do I get the ID of such folder using EWS Managed API? Only examples I find are those relating to WellKnownFolderNames. 回答1: You can find all Folders with the FindFolders method. Use WellKnownFolderName.Root to show all your folders of your Inbox. You have to create a FolderView and add the properties you want to see ( ID and DisplayName for example). Set the traversal to Deep to find all of your folders. In my