exchangewebservices

how to notice if a mail is a forwarded mail?

隐身守侯 提交于 2019-11-29 11:27:04
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 Service thinks the new message is also linked to our database and updates DB-Entry with the new Body and

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

故事扮演 提交于 2019-11-29 10:59:50
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 view = new ItemView(10); view.getOrderBy().add(ItemSchema.DateTimeReceived, SortDirection.Descending);

EWS: Access shared calendars

↘锁芯ラ 提交于 2019-11-29 10:24:00
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 message that needs to be sent to the server. I just need some kind of starting point. Any help would

Exchange web services: why is ItemId not constant?

江枫思渺然 提交于 2019-11-29 09:27:49
I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email, and I have just discovered that this ItemId is not constant. For example, if the email is moved from a public folder to another, it will receive another ItemId. That means, that the link between the email and the associated metadata is lost. So, the problem is, how can I make the link between the metadata and the specific email? Henning Krause My

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

依然范特西╮ 提交于 2019-11-29 09:07:28
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(ClientContext.TARGET_AUTH_STATE); CredentialsProvider credsProvider = (CredentialsProvider) context

Exchange Web Services Java APi + RESTful Push Notifications Listener

廉价感情. 提交于 2019-11-29 08:39:35
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 subscribeToPushNotifications(){ URI callback = null; PushSubscription pushSubscription = null; try{

Exchange Web Services (EWS) FindItems within All Folders

前提是你 提交于 2019-11-29 05:37:59
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(WellKnownFolderName.Inbox, "from:username@example.com", iv); foreach (Item item in fiitems) { Console.WriteLine(

Implementing Outlook 2010's group by conversation using EWS and Exchange 2007

拜拜、爱过 提交于 2019-11-29 04:50:55
We're using EWS to generate some analytics on some of our mailboxes. Part of this is getting a count/name/start/end of conversations. A conversation being analogous to the way Outlook 2010 shows them when grouping by conversation. I was hoping to be able to use the ConversationId to group items, but that seems to be an Exchange 2010-only feature. I can group by subject within a folder to get a simple idea of threads... however this does not handle split conversations, as Outlook 2010 does - specifically, it doesn't handle bringing in the replies that are in the sent items (these are important

getting autodiscover URL from Exchange email address

孤人 提交于 2019-11-29 02:51:10
问题 I'm starting with an address for an Exchange 2007 server: user@domain.exchangeserver.org And I attempted to send an autodiscover request, as documented at MSDN. I attempted to use the generic autodiscover address documented at the TechNet White Paper. So, using curl on PHP, I sent the following request: <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"> <Request> <EMailAddress>user@domain.exchangeserver.org</EMailAddress>

Send mails using EXCHANGE SERVER (Microsoft Outlook web access)in asp.net

纵饮孤独 提交于 2019-11-29 02:51:01
问题 I know how to send mails using outlook installed in same machine, where I'm running my code. Now, the requirement here is to access exchange server (Microsoft OWA) of my organization for sending mails in asp.net code. Is it possible? If yes, then plz throw some light. Thnx UPDATE Got the Solution. Posting my working code here for any one who wants help. happy coding ! protected void Button1_Click(object sender, EventArgs e) { ExchangeService service = new ExchangeService(ExchangeVersion