You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have instantiated ImapClient class successfully. I hooked up the two events of NewMessage and MessageDeleted to be notified when a message arrives or deleted. The code sample below implies it:
So, we found a fix for this, but I'd like to run it by someone - basically, the issue is that the "Read" command was timing out before it ever could read idle updates. But, it looked like this was by design, so I'm curious if I messed anything else up by adding an optional read timeout:
internal static string ReadLine(this Stream stream, ref int maxLength, Encoding encoding, char? termChar, int readTimeout = 10000)
{
if (stream.CanTimeout && readTimeout > 0)
stream.ReadTimeout = readTimeout;
I have instantiated ImapClient class successfully. I hooked up the two events of NewMessage and MessageDeleted to be notified when a message arrives or deleted. The code sample below implies it:
There is only one incident or two that the application is notified (even that's by chance). In rest of cases, you never receive any notifications.
The text was updated successfully, but these errors were encountered: