comparison src/mail/ngx_mail.h @ 410:cd9cb7a3ff9e

Merge with nginx 0.7.8.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 11 Aug 2008 22:07:06 +0400
parents 52b28d322d76 babd3d9efb62
children 9205084bd1f3
comparison
equal deleted inserted replaced
409:52b28d322d76 410:cd9cb7a3ff9e
79 79
80 typedef struct { 80 typedef struct {
81 ngx_mail_protocol_t *protocol; 81 ngx_mail_protocol_t *protocol;
82 82
83 ngx_msec_t timeout; 83 ngx_msec_t timeout;
84 ngx_msec_t resolver_timeout;
84 85
85 ngx_flag_t so_keepalive; 86 ngx_flag_t so_keepalive;
86 87
87 ngx_str_t server_name; 88 ngx_str_t server_name;
88 89
89 u_char *file_name; 90 u_char *file_name;
90 ngx_int_t line; 91 ngx_int_t line;
92
93 ngx_resolver_t *resolver;
91 94
92 /* server ctx */ 95 /* server ctx */
93 ngx_mail_conf_ctx_t *ctx; 96 ngx_mail_conf_ctx_t *ctx;
94 } ngx_mail_core_srv_conf_t; 97 } ngx_mail_core_srv_conf_t;
95 98
100 ngx_pop3_passwd, 103 ngx_pop3_passwd,
101 ngx_pop3_auth_login_username, 104 ngx_pop3_auth_login_username,
102 ngx_pop3_auth_login_password, 105 ngx_pop3_auth_login_password,
103 ngx_pop3_auth_plain, 106 ngx_pop3_auth_plain,
104 ngx_pop3_auth_cram_md5 107 ngx_pop3_auth_cram_md5
105 } ngx_po3_state_e; 108 } ngx_pop3_state_e;
106 109
107 110
108 typedef enum { 111 typedef enum {
109 ngx_imap_start = 0, 112 ngx_imap_start = 0,
110 ngx_imap_auth_login_username, 113 ngx_imap_auth_login_username,
149 152
150 void **ctx; 153 void **ctx;
151 void **main_conf; 154 void **main_conf;
152 void **srv_conf; 155 void **srv_conf;
153 156
157 ngx_resolver_ctx_t *resolver_ctx;
158
154 ngx_mail_proxy_ctx_t *proxy; 159 ngx_mail_proxy_ctx_t *proxy;
155 160
156 ngx_uint_t mail_state; 161 ngx_uint_t mail_state;
157 162
158 unsigned protocol:3; 163 unsigned protocol:3;
173 ngx_str_t tag; 178 ngx_str_t tag;
174 ngx_str_t tagged_line; 179 ngx_str_t tagged_line;
175 ngx_str_t text; 180 ngx_str_t text;
176 181
177 ngx_str_t *addr_text; 182 ngx_str_t *addr_text;
183 ngx_str_t host;
178 ngx_str_t smtp_helo; 184 ngx_str_t smtp_helo;
179 ngx_str_t smtp_from; 185 ngx_str_t smtp_from;
180 ngx_str_t smtp_to; 186 ngx_str_t smtp_to;
181 187
182 ngx_uint_t command; 188 ngx_uint_t command;