Turning off IMAP server while no connection

This commit is contained in:
Michal Horejsek
2020-12-21 10:08:03 +01:00
parent a468ce635c
commit 5117672388
4 changed files with 55 additions and 2 deletions

View File

@ -102,6 +102,9 @@ type ClientConfig struct {
// MinBytesPerSecond specifies minimum Bytes per second or the request will be canceled.
// Zero means no limitation.
MinBytesPerSecond int64
NoConnectionHandler func()
ConnectionHandler func()
}
// client is a client of the protonmail API. It implements the Client interface.