Search code examples
imap

S22.Imap.BadServerResponseException - IMAP xm003 BAD [CLIENTBUG] Command syntax error


Problem with the S22.Imap:

xm003 BAD [CLIENTBUG] Command syntax error

my Search Condition from the Example:

IEnumerable<uint> uids = client.Search(SearchCondition.SentSince(new DateTime(2015, 10, 20)));

oll other SearchCondition's work fine. Pls Help.


Solution

  • The problem is that S22.Imap is sending an incorrectly formatted date string in the SENTSINCE search query.

    Since S22.Imap is a dead project, I would recommend switching to my open source MailKit library instead.

    Hope that helps.