client.h revision e95dba8921087afebb8a92c592af3b8ca22ae796
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* Disconnect client after idling this many milliseconds */
16c89b1260c9d07c01c83a9219424d3727069b2eTimo Sirainen#define CLIENT_LOGIN_IDLE_TIMEOUT_MSECS (3*60*1000)
8887bf3757d51d73887dd20b1db3334d867d3817Timo Sirainen struct timeout *to_idle_disconnect, *to_auth_waiting;
51b979b6414b940f04677a7e2d064be119345954Timo Sirainen char *proxy_user, *proxy_master_user, *proxy_password;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_destroy(struct imap_client *client, const char *reason);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_destroy_success(struct imap_client *client, const char *reason);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_destroy_internal_failure(struct imap_client *client);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_send_line(struct imap_client *client, const char *line);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_send_tagline(struct imap_client *client, const char *line);
024815ea2ffdda9ea79919f18e865663977f73eaTimo Sirainenbool client_skip_line(struct imap_client *client);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_set_auth_waiting(struct imap_client *client);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid client_auth_failed(struct imap_client *client, bool nodelay);