Postal icon indicating copy to clipboard operation
Postal copied to clipboard

How do you check if I have a session connected?

Open dai-cb opened this issue 8 years ago • 1 comments

Related: How can I logout?

dai-cb avatar Sep 04 '17 12:09 dai-cb

Hi @dai-cb,

First I'm very happy that coinbase is interested by Postal :-)

The Postal instance is keeping alive an IMAPSession which itself keeps an instance of libetpan mailimap. I don't know about the internals but libetpan seem to maintain an open socket.

There is currently no method in Postal class to obtain this state. It may be available from libetpan but actually it may be easy to implement without it. If you release the Postal instance, the session will be disconnected.

jeremiegirault avatar Sep 04 '17 15:09 jeremiegirault