| #ifndef _NGX_IMAP_H_INCLUDED_ |
| #define _NGX_IMAP_H_INCLUDED_ |
| #include <ngx_event_connect.h> |
| ngx_peer_connection_t upstream; |
| uint32_t signature; /* "IMAP" */ |
| ngx_connection_t *connection; |
| ngx_imap_state_e imap_state; |
| ngx_imap_proxy_ctx_t *proxy; |
| /* used to parse IMAP/POP3 command */ |
| #define NGX_IMAP_PARSE_INVALID_COMMAND 10 |
| #define NGX_IMAP_PROXY_INVALID 10 |
| #define NGX_IMAP_PROXY_ERROR 11 |
| #define NGX_IMAP_MODULE 0x50414D49 /* "IMAP" */ |
| #define NGX_IMAP_CONF 0x02000000 |
| void ngx_imap_init_connection(ngx_connection_t *c); |
| void ngx_imap_close_connection(ngx_connection_t *c); |
| void ngx_imap_proxy_init(ngx_imap_session_t *s); |
| ngx_int_t ngx_pop3_parse_command(ngx_imap_session_t *s); |
| #endif /* _NGX_IMAP_H_INCLUDED_ */ |