Imap protocol has status command to get info about how many messages in inbox, recent count, unseen count... 'STATUS "INBOX" (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)
How can it be done in chilkat dll ? Using search for that purpose seems less efficient .
I added a new GetMailboxStatus method. Here's the pre-release download for the Delphi DLL:
Check the online reference documentation for details here:
(Make sure to refresh the refdoc web page if you don't see the new method.)
I'll add functionality to make this easier. (Selecting the mailbox (by calling ExamineMailbox or SelectMailbox) will update the NumMessages property.)