Can't get the event MessagesArrived and CountChanged to fire for GMail.. When new emails arrived at the inbox those events just won't fired. Is this not supported for GMail? or is it my wrong implementation?
Your inputs are much appreciated.
I would recommend against using the MessagesArrived event, it was an attempt at making things easier but it's not very good.
CountChanged only fires when GMail sends a line like:
* 20 EXISTS
If GMail is not sending that, then MailKit cannot know that the count has changed.
To check for yourself, follow the directions in the MailKit FAQ to set up a ProtocolLogger
.