This project is read-only.

Imap problem

Apr 30, 2014 at 3:57 PM
Edited Apr 30, 2014 at 4:02 PM
Hi again!

Sorry to ask so many questions lately, but I am trying to get things to work after upgrade, and right now I got one last problem left - IMAP, since upgrade I cannot download a single message from gmail IMAP account, it has been working before without any problems, now not only few folders I cannot even select, but all folders seem to be empty (and they are not), this is how I've been doing this before, so tell me what changed, and how can I do it now:
    var spamList = ImapClient.ExecuteSearch("SPAM");
    var l = ImapClient.ExecuteSearch("UNSEEN");
   foreach(var i in l.MailIndexList)
         var mm = ImapClient.GetMessage(i);
and so on.
EDIT: Oh, it may be important, l.Status is BAD and l.Text is tag1 BAD Could not parse command
May 3, 2014 at 1:23 AM
Hi, jantar.
In Japan, this week is holiday week until 5/6.
I'll check this issue and modify it at 5/7.
Please wait.
May 7, 2014 at 10:01 AM
I found what wrong of this problem.
Now, I modify source code and I'll release it in this week.
Please wait.

May 7, 2014 at 11:01 AM
If you modify as fast as posible, you can modify ExecuteSearch method like this with latest version.
this.ValidateState(ImapConnectionState.Authenticated, true);
String commandText = String.Format(this.Tag + " SEARCH {0}", searchText);
var rs = this.Execute(commandText);
if (rs.Status == ImapCommandResultStatus.Ok)
     return new SearchResult(this.Tag, rs.Text);
throw new MailClientException(rs.Text);
May 8, 2014 at 3:11 AM
I modified this bug of ExecuteSearch method.
Please get latest version from here.
Or get from Nuget version

May 8, 2014 at 1:27 PM
Edited May 8, 2014 at 1:28 PM

Thank You very much for this quick fix.

May 9, 2014 at 1:48 PM
Hi again!

I've downloaded new version, and now ExecuteSearch("UNSEEN") works just fine, but when I try to execute ExecuteSearch("SPAM") I again get the exception with tag1 BAD Could not parse command. The good news is I can get mail now, just can't filter out spam.
May 9, 2014 at 6:07 PM

I'll check ExecuteSearch("SPAM") issue.
Please wait for my report.