Hello.
I'm use the IMAP.
What's the correct search term for new emails?
Spire.Email.IMap.ImapClient cli = new Spire.Email.IMap.ImapClient();
cli.Connect();
cli.Select("INBOX");
Spire.Email.IMap.ImapMessageCollection results = cli.Search("SEEN FLAGGED") ;
So, do a search with the exception "Format of query string is invalid".