Mercurial > dovecot > original-hg > dovecot-1.2
view src/imap-login/client.h @ 8979:f8404c0f14de HEAD
imap-proxy: Send backend's CAPABILITY if it's different from what was sent to client before.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 22 Apr 2009 13:54:54 -0400 |
parents | 2ff2cac3578b |
children | f43bebab3dac |
line wrap: on
line source
#ifndef CLIENT_H #define CLIENT_H #include "network.h" #include "master.h" #include "client-common.h" /* Disconnect client after idling this many milliseconds */ #define CLIENT_LOGIN_IDLE_TIMEOUT_MSECS (3*60*1000) struct imap_client { struct client common; time_t created; int refcount; struct io *io; struct ostream *output; struct imap_parser *parser; struct timeout *to_idle_disconnect, *to_auth_waiting; struct timeout *to_authfail_delay; struct login_proxy *proxy; char *proxy_user, *proxy_master_user, *proxy_password; char *proxy_backend_capability; unsigned int bad_counter; const char *cmd_tag, *cmd_name; unsigned int login_success:1; unsigned int cmd_finished:1; unsigned int proxy_login_sent:1; unsigned int skip_line:1; unsigned int input_blocked:1; unsigned int destroyed:1; unsigned int greeting_sent:1; unsigned int id_logged:1; unsigned int auth_initializing:1; unsigned int capability_command_used:1; }; void client_destroy(struct imap_client *client, const char *reason); void client_destroy_success(struct imap_client *client, const char *reason); void client_destroy_internal_failure(struct imap_client *client); void client_send_line(struct imap_client *client, const char *line); void client_send_tagline(struct imap_client *client, const char *line); bool client_read(struct imap_client *client); bool client_skip_line(struct imap_client *client); void client_input(struct imap_client *client); void client_ref(struct imap_client *client); bool client_unref(struct imap_client *client); void client_set_auth_waiting(struct imap_client *client); void client_auth_failed(struct imap_client *client, bool nodelay); #endif