I am running Aspose.Network 5.0.0.0 to monitor messages arriving in an inbox (using IMAP). I do this by calling ImapClient.SelectFolder(folderName) then looking at ImapClient.CurrentFolder.TotalMessageCount. If > 0, there's a message.
It works, but after a while (generally overnight) it hangs on the call to SelectFolder. So I end up restarting the app daily.
I tried removing the call to SelectFolder, but then TotalMessageCount continues to report that there are zero messages even after one has been received.
Is there a way around this?
Thanks