i tried to register the idle event hoping to receive a notification, but did not get any. Here is my code... what am i missing?
Do we have any samples?
MailServer oServer = new MailServer(_config.EmailServer, _config.EmailAccountName, _config.EmailAccountPasswrod, ServerProtocol.Imap4);
my windows service has this code to register for event:
MailClient oClient = new MailClient(_config.EaGetMailLicense);
oServer.SSLConnection = true;
oServer.Port = 993;
oClient.Connect(oServer);
oClient.OnIdle += new MailClient.OnIdleEventHandler(NewMessageReceived);
public void NewMessageReceived(object source, ref bool cancel)
{
// Do something with the source...
_logger.InfoFormat($"New {_config.ConfigurationName} Message notification: {source.ToString()}");
//ProcessMessages();
}