Comments on: How to search IMAP in .NET https://www.limilabs.com/blog/how-to-search-imap-in-net Using Limilabs .net components Fri, 11 Aug 2023 09:03:03 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Limilabs support https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-577009 Thu, 24 Oct 2013 20:31:20 +0000 http://www.limilabs.com/blog/?p=181#comment-577009 In reply to Elena V.

@Elena V,

This definitely Yahoo’s bug. Yahoo search doesn’t work with national (unicode) characters.

As far as I remember, previously Yahoo disconnected when search phrase included unicode characters; now it sends BAD [CLIENTBUG] UID SEARCH Command arguments invalid”, which is ridiculous as this is server side problem.

As a side note: it seems to me that they updated their server recently and now it fails to create/select folders with unicode characters.

]]>
By: Elena V https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-577007 Thu, 24 Oct 2013 20:09:20 +0000 http://www.limilabs.com/blog/?p=181#comment-577007 Thanks for the fast reply, this helped a lot!
I sent all requested stuff to your support (along with logs and tech details).
The server is Yahoo, imap.mail.yahoo.com.

Today I got
[CLIENTBUG] UID SEARCH Command arguments invalid.
for SUBJECT search with “письмо” literal (Cyrillic).
This is exactly the same error which we got in our product before to try yours until the issue will be resolved. Seems Yahoo IMAP server bug for Unicode literals. ASCII works ok, this is only about Unicode literals.

Seems Yahoo IMAP bug. Definitely this search worked in past.

Again thanks!

]]>
By: Limilabs support https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-576895 Thu, 24 Oct 2013 08:03:12 +0000 http://www.limilabs.com/blog/?p=181#comment-576895 In reply to Elena V.

@Elana V,

Please make sure you are using the latest version (http://www.limilabs.com/static/mail/ReleaseNotes.txt).

Mail.dll correctly escapes all unicode characters, but there are many IMAP servers out there, that act incorrectly and violate IMAP protocol. “Tried to read a line. No data received.” error means that the server suddenly disconnected or failed to send anything.

What server are you using? Can you turn on logging (http://www.limilabs.com/blog/logging-in-mail-dll) and contact us directly (http://www.limilabs.com/support)?

]]>
By: Elena V https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-576796 Wed, 23 Oct 2013 21:49:00 +0000 http://www.limilabs.com/blog/?p=181#comment-576796 Search with subject search criteria containing Unicode fails with exception “Tried to read a line. No data received.”

]]>
By: Limilabs support https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-485545 Mon, 04 Mar 2013 13:13:46 +0000 http://www.limilabs.com/blog/?p=181#comment-485545 In reply to Harold Garcia.

@Harold Garcia

You can’t. Consider using searching using Expression syntax.
Remember that you can use SimpleImapQuery object as part of your Expression query.

]]>
By: Harold Garcia https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-480534 Fri, 01 Mar 2013 13:06:37 +0000 http://www.limilabs.com/blog/?p=181#comment-480534 I am using the SimpleImapQuery to filter the email From and To but how can I also limit the search for 5 days etc.

]]>
By: Hasitha https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-36814 Wed, 12 Sep 2012 04:30:47 +0000 http://www.limilabs.com/blog/?p=181#comment-36814 okey, thank you very much for you help.. i will try that out 🙂

]]>
By: Limilabs support https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-36293 Tue, 11 Sep 2012 12:08:03 +0000 http://www.limilabs.com/blog/?p=181#comment-36293 In reply to Hasitha.

@Hasitha

Search is done always on the server side. Exchange can decide that a message is no longer \NEW or \UNSEEN when it has been downloaded by Outlook.
You can remember the last uid you have downloaded to be 100% sure you get all new messages.
It is a good solution in those cases when multiple users/programs access single mailbox/folder.

]]>
By: Hasitha https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-36199 Tue, 11 Sep 2012 08:44:27 +0000 http://www.limilabs.com/blog/?p=181#comment-36199 Hi, there is a small problem i am facing..i am using your fantastic product to retrieve from mails from ms outlook. when I use,

List uids = imap.Search(Flag.New);

i can access new recieved mails..but if i just open outlook and try that command, it returns 0, also, i tried seen, unseen and All also..but returns 0 but i can see unread n read mails in my inbox.. why is this?? please help..

]]>
By: Limilabs support https://www.limilabs.com/blog/how-to-search-imap-in-net#comment-1375 Tue, 06 Dec 2011 19:13:53 +0000 http://www.limilabs.com/blog/?p=181#comment-1375 In reply to Louie.

@Louie,

I’m afraid that this may be a server bug (the search is done entirely on the IMAP server side).

]]>