Hi,
Thanks
Hi,
Hi Luk,
Thank you for writing to Aspose Support team.
We need further information from you in this regard in addition to sharing our own knowledge based on this [link](http://www.aspose.com/docs/display/emailnet/Filtering+Messages+from+IMAP+Mailbox+Based+on+Sender%2C+Recipient+or+Date#FilteringMessagesfromIMAPMailboxBasedonSender%2CRecipientorDate-CaseSensitiveSearch)
.
The IMAP Query Builder provide supports for combining queries with OR that you can use to make a combination of Date and InternalDate if you need to. Please try it at our end and let us know your feedback if it doesn’t fulfill your requirements.
Can you please share the specific accent words that we could try at our end and assist you further.
Please share your complete sample code (in combination with the above 2 points as well) that you are trying at your end.
There have been issues related to IMAP queries in past, but those were of different nature. Please share your sample code and other requirements mentioned above for further assistance in this regard.
Hi,
Hi Luk,
Hi,
Could you please confirm to us if you are using the latest version of the API at your end? We have tested your issues as follow and found no exception or error at our end.
1. We executed the following code but it didn’t raise any issue at our end. Can you also please specify the Encoding in ImapQueryBuilder constructor and see if that helps you? If the issue doesn’t solve, please share sample code with us having accent letters in query that gives raise to issue as in our example below. We’ll further investigate it at our end.
Sample Code:
ImapQueryBuilder builder = new ImapQueryBuilder(Encoding.UTF8);
builder.From.Contains(“ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ”, true);
MailQuery mailQuery = builder.GetQuery();
2. I sent an email to our Office365 account and tested it for sent as well as internal date. All the emails were retrieved without any issue and getting missed. However, as mentioned in our documentation section, Filtering and Display Messages based on Internal Date, sometimes server does not return all messages as visible in the inbox. Its reason can be the server timezone because it may not be UTC for all the servers like GMAIL. Aspose sends commands like 008 SEARCH ON 4-May-2014 as per the IMAP protocol. However, results can differ due to server timezone settings. In such case, searching by InternalDate can be helpful.
Still for testing purpose, you can send some emails to online test account on Office365 at UserTwo@AsposeJun2016.onmicrosoft.com and check it for results. Following are the credentials for this test account.
Username: UserTwo@AsposeJun2016.onmicrosoft.com
Password: Aspose1234
2.a. We have tested this stance at our end and were not able to reproduce the problem. Could you please be kind enough to send some test message to the above mentioned test account that exhibits such problem and then let us know so that we can reproduce the behavior at our end?
PS: It will be better and beneficial for you as well as us if you could report the problems as 1 problem per thread. This makes it easy for keeping track of the issue raised in a thread and provide to-the-point assistance to our valued customers. I suggest you to please create new post per new issue where we could assist you more effectively.
Hi,
Could you please confirm to us if you are using the latest version of the API at your end? We have tested your issues as follow and found no exception or error at our end.
1. We executed the following code but it didn’t raise any issue at our end. Can you also please specify the Encoding in ImapQueryBuilder constructor and see if that helps you? If the issue doesn’t solve, please share sample code with us having accent letters in query that gives raise to issue as in our example below. We’ll further investigate it at our end.
Sample Code:
ImapQueryBuilder builder = new ImapQueryBuilder(Encoding.UTF8);
builder.From.Contains(“ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ”, true);
MailQuery mailQuery = builder.GetQuery();
2. I sent an email to our Office365 account and tested it for sent as well as internal date. All the emails were retrieved without any issue and getting missed. However, as mentioned in our documentation section, [Filtering and Display Messages based on Internal Date ](http://www.aspose.com/docs/display/emailnet/Filtering+Messages+from+IMAP+Mailbox+Based+on+Sender%2C+Recipient+or+Date#FilteringMessagesfromIMAPMailboxBasedonSender%2CRecipientorDate-newsletter)
, sometimes server does not return all messages as visible in the inbox. Its reason can be the server timezone because it may not be UTC for all the servers like GMAIL. Aspose sends commands like 008 SEARCH ON 4-May-2014 as per the IMAP protocol. However, results can differ due to server timezone settings. In such case, searching by InternalDate can be helpful.
Still for testing purpose, you can send some emails to online test account on Office365 at UserTwo@AsposeJun2016.onmicrosoft.com
and check it for results. Following are the credentials for this test account.
Username: [UserTwo@AsposeJun2016.onmicrosoft.com]
Password: Aspose1234
2.a. We have tested this stance at our end and were not able to reproduce the problem. Could you please be kind enough to send some test message to the above mentioned test account that exhibits such problem and then let us know so that we can reproduce the behavior at our end?
PS: It will be better and beneficial for you as well as us if you could report the problems as 1 problem per thread. This makes it easy for keeping track of the issue raised in a thread and provide to-the-point assistance to our valued customers. I suggest you to please create new post per new issue where we could assist you more effectively.