Underlying connection reset
If underlying connection was reset (IP address changed) lib stops from being responding. It is sitting quiet without firing new message events (actually new emails keep arrivning into mailbox). And I have no way to control it from my app side.. Any workarounds on it?
Thanks,
Well if the connection is reset, obviously the TCP connection to the IMAP server will get reset as well. The library does not automatically attempt to silently re-connect.
The .NET framework offers a NetworkAvailabilityChanged event that is raised when the availability of the network changes. You could subscribe to that and try to re-connect to the server whenever it's raised and the 'IsAvailable' property is true.
This sounds similar as to #51 But without exception. There is no exception raised at all when this happens?
This is a fun problem to solve... you can see how I did it in my C library here:
https://github.com/jstedfast/spruce/blob/master/spruce/providers/imap/spruce-imap-engine.c#L1368
@vchernyshev the ImapClient class now exposes the IdleError event to which you can subscribe in order to be notified when the underlying connection is reset.