Mercurial > hg > nginx-mail
comparison src/mail/ngx_mail.h @ 398:f9e6413396d4 PATCH_NGINX_MAIL_0_2
Mail: IMAP AUTHENTICATE command support.
Supported auth methods: PLAIN, LOGIN, CRAM-MD5.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 19 Jul 2007 02:43:59 +0000 |
parents | e2d916d7e50f |
children | f1e2fab7a46c |
comparison
equal
deleted
inserted
replaced
397:1aac47be9772 | 398:f9e6413396d4 |
---|---|
99 ngx_str_t server_name; | 99 ngx_str_t server_name; |
100 ngx_str_t smtp_server_name; | 100 ngx_str_t smtp_server_name; |
101 ngx_str_t smtp_greeting; | 101 ngx_str_t smtp_greeting; |
102 | 102 |
103 ngx_uint_t pop3_auth_methods; | 103 ngx_uint_t pop3_auth_methods; |
104 ngx_uint_t imap_auth_methods; | |
104 ngx_uint_t smtp_auth_methods; | 105 ngx_uint_t smtp_auth_methods; |
105 | 106 |
106 ngx_array_t pop3_capabilities; | 107 ngx_array_t pop3_capabilities; |
107 ngx_array_t imap_capabilities; | 108 ngx_array_t imap_capabilities; |
108 ngx_array_t smtp_capabilities; | 109 ngx_array_t smtp_capabilities; |
161 } ngx_po3_state_e; | 162 } ngx_po3_state_e; |
162 | 163 |
163 | 164 |
164 typedef enum { | 165 typedef enum { |
165 ngx_imap_start = 0, | 166 ngx_imap_start = 0, |
167 ngx_imap_auth_login_username, | |
168 ngx_imap_auth_login_password, | |
169 ngx_imap_auth_plain, | |
170 ngx_imap_auth_cram_md5, | |
166 ngx_imap_login, | 171 ngx_imap_login, |
167 ngx_imap_user, | 172 ngx_imap_user, |
168 ngx_imap_passwd | 173 ngx_imap_passwd |
169 } ngx_imap_state_e; | 174 } ngx_imap_state_e; |
170 | 175 |
243 ngx_str_t *client; | 248 ngx_str_t *client; |
244 ngx_mail_session_t *session; | 249 ngx_mail_session_t *session; |
245 } ngx_mail_log_ctx_t; | 250 } ngx_mail_log_ctx_t; |
246 | 251 |
247 | 252 |
248 #define NGX_POP3_USER 1 | 253 #define NGX_POP3_USER 1 |
249 #define NGX_POP3_PASS 2 | 254 #define NGX_POP3_PASS 2 |
250 #define NGX_POP3_CAPA 3 | 255 #define NGX_POP3_CAPA 3 |
251 #define NGX_POP3_QUIT 4 | 256 #define NGX_POP3_QUIT 4 |
252 #define NGX_POP3_NOOP 5 | 257 #define NGX_POP3_NOOP 5 |
253 #define NGX_POP3_STLS 6 | 258 #define NGX_POP3_STLS 6 |
254 #define NGX_POP3_APOP 7 | 259 #define NGX_POP3_APOP 7 |
255 #define NGX_POP3_AUTH 8 | 260 #define NGX_POP3_AUTH 8 |
256 #define NGX_POP3_STAT 9 | 261 #define NGX_POP3_STAT 9 |
257 #define NGX_POP3_LIST 10 | 262 #define NGX_POP3_LIST 10 |
258 #define NGX_POP3_RETR 11 | 263 #define NGX_POP3_RETR 11 |
259 #define NGX_POP3_DELE 12 | 264 #define NGX_POP3_DELE 12 |
260 #define NGX_POP3_RSET 13 | 265 #define NGX_POP3_RSET 13 |
261 #define NGX_POP3_TOP 14 | 266 #define NGX_POP3_TOP 14 |
262 #define NGX_POP3_UIDL 15 | 267 #define NGX_POP3_UIDL 15 |
263 | 268 |
264 | 269 |
265 #define NGX_IMAP_LOGIN 1 | 270 #define NGX_IMAP_LOGIN 1 |
266 #define NGX_IMAP_LOGOUT 2 | 271 #define NGX_IMAP_LOGOUT 2 |
267 #define NGX_IMAP_CAPABILITY 3 | 272 #define NGX_IMAP_CAPABILITY 3 |
268 #define NGX_IMAP_NOOP 4 | 273 #define NGX_IMAP_NOOP 4 |
269 #define NGX_IMAP_STARTTLS 5 | 274 #define NGX_IMAP_STARTTLS 5 |
270 | 275 |
271 #define NGX_IMAP_NEXT 6 | 276 #define NGX_IMAP_NEXT 6 |
272 | 277 |
273 | 278 #define NGX_IMAP_AUTHENTICATE 7 |
274 #define NGX_SMTP_HELO 1 | 279 |
275 #define NGX_SMTP_EHLO 2 | 280 |
276 #define NGX_SMTP_AUTH 3 | 281 #define NGX_SMTP_HELO 1 |
277 #define NGX_SMTP_QUIT 4 | 282 #define NGX_SMTP_EHLO 2 |
278 #define NGX_SMTP_NOOP 5 | 283 #define NGX_SMTP_AUTH 3 |
279 #define NGX_SMTP_MAIL 6 | 284 #define NGX_SMTP_QUIT 4 |
280 #define NGX_SMTP_RSET 7 | 285 #define NGX_SMTP_NOOP 5 |
281 #define NGX_SMTP_RCPT 8 | 286 #define NGX_SMTP_MAIL 6 |
282 #define NGX_SMTP_DATA 9 | 287 #define NGX_SMTP_RSET 7 |
283 #define NGX_SMTP_VRFY 10 | 288 #define NGX_SMTP_RCPT 8 |
284 #define NGX_SMTP_EXPN 11 | 289 #define NGX_SMTP_DATA 9 |
285 #define NGX_SMTP_HELP 12 | 290 #define NGX_SMTP_VRFY 10 |
286 #define NGX_SMTP_STARTTLS 13 | 291 #define NGX_SMTP_EXPN 11 |
292 #define NGX_SMTP_HELP 12 | |
293 #define NGX_SMTP_STARTTLS 13 | |
287 | 294 |
288 | 295 |
289 #define NGX_MAIL_AUTH_PLAIN 0 | 296 #define NGX_MAIL_AUTH_PLAIN 0 |
290 #define NGX_MAIL_AUTH_LOGIN 1 | 297 #define NGX_MAIL_AUTH_LOGIN 1 |
291 #define NGX_MAIL_AUTH_APOP 2 | 298 #define NGX_MAIL_AUTH_APOP 2 |