Replies: 1 comment
-
You do not need to reconnect any event handlers after reconnecting to the same server. If you reconnect to a different server, the ImapClient's internal folder cache is cleared and new ImapFolder instances will be created. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this event attahced to inbox:
client.Inbox.CountChanged += (x, y) => hasnewmessage = true;
My questions, if I detect the client got disconnected, and I reconnect it immediately.
Now, do I need to reattach the event? I mean, will the inbox folder got reinitialized?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions