0 votes
by (130 points)
edited

I am getting an "Command syntax error (BAD)" Error while using Rebex.Imap.Search with 2.0.4700.0 Rebex Components.

My Code

var msgColl = client.Search(ImapSearchParameter.And(ImapSearchParameter.Or(ImapSearchParameter.From(pair.Item2), ImapSearchParameter.To(pair.Item2), ImapSearchParameter.CC(pair.Item2), 
ImapSearchParameter.Bcc(pair.Item2)), ImapSearchParameter.Arrived(lastReceiveDate, DateTime.MaxValue), 
ImapSearchParameter.HasFlagsNoneOf(ImapMessageFlags.Draft),
ImapSearchParameter.HasFlagsNoneOf(ImapMessageFlags.Deleted)));

Server info after the connect

* OK [CAPABILITY IMAP4 IMAP4rev1 AUTH=SCRAM-SHA-1 AUTH=DIGEST-MD5 AUTH=CRAM-MD5
AUTH=LOGIN AUTH=PLAIN CHILDREN ID IDLE MOVE MULTIAPPEND NAMESPACE QUOTA SORT UID
PLUS UNSELECT WITHIN XLIST] IMAP server ready (P4)

Exception stack trace

Stack trace: 
   at Rebex.Net.Imap.1djEnpZ(String , ImapResponse , Boolean )
   at Rebex.Net.Imap.2Dt7i1Z(String , Object[] )
   at Rebex.Net.Imap.2F9UX7(ImapMessageSet , ImapListFields , ImapSearchParameter[] )
   at Rebex.Net.Imap.Search(ImapMessageSet messageSet, ImapListFields fields, ImapSearchParameter[] parameters)
   at Rebex.Net.Imap.Search(ImapSearchParameter[] parameters)

What am I doing wrong?

Applies to: Rebex Secure Mail

1 Answer

+1 vote
by (8.4k points)
edited

Could you please create log of the communication between Rebex Imap client and the Imap server as described at this article and either post it here or send it to support@rebex.net.

by (130 points)
edited

An e-mail is on the way

...