client.h revision 00fa8dcbc66f56daa737487c9dec7166c37de79e
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen/* Disconnect client after idling this many milliseconds */
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen#define CLIENT_LOGIN_IDLE_TIMEOUT_MSECS (3*60*1000)
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen struct timeout *to_idle_disconnect, *to_auth_waiting;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen char *proxy_user, *proxy_master_user, *proxy_password;
c18ff860dc22960fd37c272d929f889c7939a2c8Timo Sirainen unsigned int client_ignores_capability_resp_code:1;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenvoid client_destroy(struct imap_client *client, const char *reason);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenvoid client_destroy_success(struct imap_client *client, const char *reason);
e237ebeb97f42950eef3efd0d3db85590160d5fbTimo Sirainenvoid client_destroy_internal_failure(struct imap_client *client);
e237ebeb97f42950eef3efd0d3db85590160d5fbTimo Sirainenbool client_skip_line(struct imap_client *client);
e237ebeb97f42950eef3efd0d3db85590160d5fbTimo Sirainenvoid client_send_raw(struct imap_client *client, const char *data);
03010dbaa74ec70f062994dfe3cd39bedc99a28bTimo Sirainenvoid client_set_auth_waiting(struct imap_client *client);
e237ebeb97f42950eef3efd0d3db85590160d5fbTimo Sirainenvoid client_auth_failed(struct imap_client *client, bool nodelay);