From ceb992921cee6f76d1752af2d388ee6a1d71e078 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 6 Sep 2005 16:09:32 +0000 Subject: nginx-0.1.44-RELEASE import *) Feature: the IMAP/POP3 proxy supports SSL. *) Feature: the "proxy_timeout" directive of the ngx_imap_proxy_module. *) Feature: the "userid_mark" directive. *) Feature: the $remote_user variable value is determined independently of authorization use. --- src/imap/ngx_imap.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/imap/ngx_imap.h') diff --git a/src/imap/ngx_imap.h b/src/imap/ngx_imap.h index 8a506db64..5e037743b 100644 --- a/src/imap/ngx_imap.h +++ b/src/imap/ngx_imap.h @@ -13,6 +13,11 @@ #include #include +#if (NGX_IMAP_SSL) +#include +#endif + + typedef struct { void **main_conf; @@ -32,7 +37,6 @@ typedef struct { ngx_msec_t timeout; size_t imap_client_buffer_size; - size_t proxy_buffer_size; ngx_uint_t protocol; @@ -82,8 +86,8 @@ typedef struct { ngx_connection_t *connection; - ngx_buf_t *buffer; ngx_str_t out; + ngx_buf_t *buffer; void **ctx; void **main_conf; @@ -93,6 +97,8 @@ typedef struct { ngx_uint_t imap_state; + unsigned blocked:1; + unsigned quit:1; unsigned protocol:1; unsigned quoted:1; @@ -100,6 +106,7 @@ typedef struct { ngx_str_t passwd; ngx_str_t tag; + ngx_str_t tagged_line; ngx_uint_t command; ngx_array_t args; @@ -167,6 +174,7 @@ typedef struct { void ngx_imap_init_connection(ngx_connection_t *c); +void ngx_imap_send(ngx_event_t *wev); void ngx_imap_auth_state(ngx_event_t *rev); void ngx_pop3_auth_state(ngx_event_t *rev); void ngx_imap_close_connection(ngx_connection_t *c); -- cgit