Imap problem

Apr 30, 2014 at 2:57 PM
Edited Apr 30, 2014 at 3: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)
   {
      try{
         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
Coordinator
May 3, 2014 at 12: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.
Coordinator
May 7, 2014 at 9:01 AM
I found what wrong of this problem.
Now, I modify source code and I'll release it in this week.
Please wait.

regards.
Coordinator
May 7, 2014 at 10: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);
regards
Coordinator
May 8, 2014 at 2:11 AM
I modified this bug of ExecuteSearch method.
Please get latest version from here.
https://higlabo.codeplex.com/releases/view/121904
Or get from Nuget version 0.2.3.8.

regards.
May 8, 2014 at 12:27 PM
Edited May 8, 2014 at 12:28 PM
Hi!

Thank You very much for this quick fix.

Regards
Janusz
May 9, 2014 at 12: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.
Coordinator
May 9, 2014 at 5:07 PM
Hi.Jantar.

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

regards.