I'm trying to retrieve mailbox information by selecting the mailbox and then accessing the WorkingMailboxInfo. I've tried this with gmail and yahoo accounts and I noticed that ContainsNewMessages is always false, NewUnseenMessages and RecentMessages are always 0. First I tried just single calls and then I thought maybe the client has to be instantiated in order to detect changes in state. Still, even if new emails arrive while the loop is running the values are still unchanged.
I'd appreciate anny help.
var client = new ImapClient();
client.Connect("imap.gmail.com", 993, SecurityMode.Implicit);
var n = 0;
while (n < 20)
if (client.WorkingMailbox != null)