searchfiltercollection

searching Exchange mailbox by email address using SearchFilterCollection

。_饼干妹妹 提交于 2019-12-13 04:42:37
问题 I am searching an email inbox (on Exchange 2010) using Exchange Web Services. In my SearchFilterCollection I would like to include the From.Address property of the Email message, as I only want to retrieve emails that include a certain domain (such as @domain.co.uk) here is my code: SearchFilter.SearchFilterCollection searchFilterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And); searchFilterCollection.Add(new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));

searchFilter not working properly with EWS FindItems method call

五迷三道 提交于 2019-12-01 08:01:13
I Am using a SearchFilter collection to restrict what emails are returned by a request to an Exchange 2010 mailbox using EWS. I have no problem connecting to the service, and opening the mailbox. The problem is that my searchFilter is being ignored, and all the emails are being returned by the request to EWS. Here is my code: static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; //creates an object that will represent the desired mailbox Mailbox mb = new Mailbox(@"bbtest@bocuk.local"); // Find all items where the body

searchFilter not working properly with EWS FindItems method call

人盡茶涼 提交于 2019-12-01 06:21:58
问题 I Am using a SearchFilter collection to restrict what emails are returned by a request to an Exchange 2010 mailbox using EWS. I have no problem connecting to the service, and opening the mailbox. The problem is that my searchFilter is being ignored, and all the emails are being returned by the request to EWS. Here is my code: static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; //creates an object that will represent the