When I use the monitoring feature with several subfolders (not only inbox), then the app hangs when trying to stop monitoring the last registrated folder. Tried this with older dll version 16.xx and it worked. Doesn´t work with the actual library 18.5.xx.
Code snippet:
_imapClient = new Aspose.Email.Clients.Imap.ImapClient();
…
_imapClient.StartMonitoring(“INBOX”, delegate (object sender, ImapMonitoringEventArgs e) { … });
_imapClient.StartMonitoring(“INBOX.test”, delegate (object sender, ImapMonitoringEventArgs e) { … });
_imapClient.StartMonitoring(“INBOX.test2”, delegate (object sender, ImapMonitoringEventArgs e) { … });
…
_imapClient.StopMonitoring(“INBOX.test”);
_imapClient.StopMonitoring(“INBOX.test2”);
_imapClient.StopMonitoring(“INBOX”); --> hangs
Do you have any idea?
Thanks.