none
Is EWS a matured enough to be used in production environment? RRS feed

  • General discussion

  • I have a very simple Exchange WebService (EWS) code to search mail items based on following conditions

               searchFilterCollection.Add(new SearchFilter.ContainsSubstring(EmailMessageSchema.From,"kalpesh@zzzzzz.com"));
               searchFilterCollection.Add(new SearchFilter.ContainsSubstring(EmailMessageSchema.ToRecipients, "kalpesh@zzzzzz.com"));
               searchFilterCollection.Add(new SearchFilter.ContainsSubstring(EmailMessageSchema.From,"heena@zzzzzz.com"));

               SearchFilter searchFilter = new SearchFilter.SearchFilterCollection(LogicalOperator.Or, searchFilterCollection.ToArray());

    I hope this creteria is correct to search any email where From = either 'kalpesh' or 'heena'  or To = 'kalpesh'.

    Out of 10 attempts of calling "service.FindItems(WellKnownFolderName.Inbox,searchFilter......"  method,  approx 7 times i get "Server timeout" error.   I wonder why  ?

    Any Tips.

    Regards
    Jiya.

    Thursday, November 4, 2010 12:52 PM