Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you check if I have a session connected? #63

Open
dai-cb opened this issue Sep 4, 2017 · 1 comment
Open

How do you check if I have a session connected? #63

dai-cb opened this issue Sep 4, 2017 · 1 comment
Labels

Comments

@dai-cb
Copy link

dai-cb commented Sep 4, 2017

Related: How can I logout?

@jeremiegirault
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants