Go to the source code of this file.
Macros |
| #define | NGX_MAIL_POP3_PROTOCOL 0 |
| #define | NGX_MAIL_IMAP_PROTOCOL 1 |
| #define | NGX_MAIL_SMTP_PROTOCOL 2 |
| #define | NGX_POP3_USER 1 |
| #define | NGX_POP3_PASS 2 |
| #define | NGX_POP3_CAPA 3 |
| #define | NGX_POP3_QUIT 4 |
| #define | NGX_POP3_NOOP 5 |
| #define | NGX_POP3_STLS 6 |
| #define | NGX_POP3_APOP 7 |
| #define | NGX_POP3_AUTH 8 |
| #define | NGX_POP3_STAT 9 |
| #define | NGX_POP3_LIST 10 |
| #define | NGX_POP3_RETR 11 |
| #define | NGX_POP3_DELE 12 |
| #define | NGX_POP3_RSET 13 |
| #define | NGX_POP3_TOP 14 |
| #define | NGX_POP3_UIDL 15 |
| #define | NGX_IMAP_LOGIN 1 |
| #define | NGX_IMAP_LOGOUT 2 |
| #define | NGX_IMAP_CAPABILITY 3 |
| #define | NGX_IMAP_NOOP 4 |
| #define | NGX_IMAP_STARTTLS 5 |
| #define | NGX_IMAP_NEXT 6 |
| #define | NGX_IMAP_AUTHENTICATE 7 |
| #define | NGX_SMTP_HELO 1 |
| #define | NGX_SMTP_EHLO 2 |
| #define | NGX_SMTP_AUTH 3 |
| #define | NGX_SMTP_QUIT 4 |
| #define | NGX_SMTP_NOOP 5 |
| #define | NGX_SMTP_MAIL 6 |
| #define | NGX_SMTP_RSET 7 |
| #define | NGX_SMTP_RCPT 8 |
| #define | NGX_SMTP_DATA 9 |
| #define | NGX_SMTP_VRFY 10 |
| #define | NGX_SMTP_EXPN 11 |
| #define | NGX_SMTP_HELP 12 |
| #define | NGX_SMTP_STARTTLS 13 |
| #define | NGX_MAIL_AUTH_PLAIN 0 |
| #define | NGX_MAIL_AUTH_LOGIN 1 |
| #define | NGX_MAIL_AUTH_LOGIN_USERNAME 2 |
| #define | NGX_MAIL_AUTH_APOP 3 |
| #define | NGX_MAIL_AUTH_CRAM_MD5 4 |
| #define | NGX_MAIL_AUTH_NONE 5 |
| #define | NGX_MAIL_AUTH_PLAIN_ENABLED 0x0002 |
| #define | NGX_MAIL_AUTH_LOGIN_ENABLED 0x0004 |
| #define | NGX_MAIL_AUTH_APOP_ENABLED 0x0008 |
| #define | NGX_MAIL_AUTH_CRAM_MD5_ENABLED 0x0010 |
| #define | NGX_MAIL_AUTH_NONE_ENABLED 0x0020 |
| #define | NGX_MAIL_PARSE_INVALID_COMMAND 20 |
| #define | NGX_MAIL_MODULE 0x4C49414D /* "MAIL" */ |
| #define | NGX_MAIL_MAIN_CONF 0x02000000 |
| #define | NGX_MAIL_SRV_CONF 0x04000000 |
| #define | NGX_MAIL_MAIN_CONF_OFFSET offsetof(ngx_mail_conf_ctx_t, main_conf) |
| #define | NGX_MAIL_SRV_CONF_OFFSET offsetof(ngx_mail_conf_ctx_t, srv_conf) |
| #define | ngx_mail_get_module_ctx(s, module) (s)->ctx[module.ctx_index] |
| #define | ngx_mail_set_ctx(s, c, module) s->ctx[module.ctx_index] = c; |
| #define | ngx_mail_delete_ctx(s, module) s->ctx[module.ctx_index] = NULL; |
| #define | ngx_mail_get_module_main_conf(s, module) (s)->main_conf[module.ctx_index] |
| #define | ngx_mail_get_module_srv_conf(s, module) (s)->srv_conf[module.ctx_index] |
| #define | ngx_mail_conf_get_module_main_conf(cf, module) ((ngx_mail_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] |
| #define | ngx_mail_conf_get_module_srv_conf(cf, module) ((ngx_mail_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index] |
Enumerations |
| enum | ngx_pop3_state_e {
ngx_pop3_start = 0,
ngx_pop3_user,
ngx_pop3_passwd,
ngx_pop3_auth_login_username,
ngx_pop3_auth_login_password,
ngx_pop3_auth_plain,
ngx_pop3_auth_cram_md5
} |
| enum | ngx_imap_state_e {
ngx_imap_start = 0,
ngx_imap_auth_login_username,
ngx_imap_auth_login_password,
ngx_imap_auth_plain,
ngx_imap_auth_cram_md5,
ngx_imap_login,
ngx_imap_user,
ngx_imap_passwd
} |
| enum | ngx_smtp_state_e {
ngx_smtp_start = 0,
ngx_smtp_auth_login_username,
ngx_smtp_auth_login_password,
ngx_smtp_auth_plain,
ngx_smtp_auth_cram_md5,
ngx_smtp_helo,
ngx_smtp_helo_xclient,
ngx_smtp_helo_from,
ngx_smtp_xclient,
ngx_smtp_xclient_from,
ngx_smtp_xclient_helo,
ngx_smtp_from,
ngx_smtp_to
} |
Functions |
| void | ngx_mail_init_connection (ngx_connection_t *c) |
| ngx_int_t | ngx_mail_salt (ngx_mail_session_t *s, ngx_connection_t *c, ngx_mail_core_srv_conf_t *cscf) |
| ngx_int_t | ngx_mail_auth_plain (ngx_mail_session_t *s, ngx_connection_t *c, ngx_uint_t n) |
| ngx_int_t | ngx_mail_auth_login_username (ngx_mail_session_t *s, ngx_connection_t *c, ngx_uint_t n) |
| ngx_int_t | ngx_mail_auth_login_password (ngx_mail_session_t *s, ngx_connection_t *c) |
| ngx_int_t | ngx_mail_auth_cram_md5_salt (ngx_mail_session_t *s, ngx_connection_t *c, char *prefix, size_t len) |
| ngx_int_t | ngx_mail_auth_cram_md5 (ngx_mail_session_t *s, ngx_connection_t *c) |
| ngx_int_t | ngx_mail_auth_parse (ngx_mail_session_t *s, ngx_connection_t *c) |
| void | ngx_mail_send (ngx_event_t *wev) |
| ngx_int_t | ngx_mail_read_command (ngx_mail_session_t *s, ngx_connection_t *c) |
| void | ngx_mail_auth (ngx_mail_session_t *s, ngx_connection_t *c) |
| void | ngx_mail_close_connection (ngx_connection_t *c) |
| void | ngx_mail_session_internal_server_error (ngx_mail_session_t *s) |
| u_char * | ngx_mail_log_error (ngx_log_t *log, u_char *buf, size_t len) |
| char * | ngx_mail_capabilities (ngx_conf_t *cf, ngx_command_t *cmd, void *conf) |
| void | ngx_mail_proxy_init (ngx_mail_session_t *s, ngx_addr_t *peer) |
| void | ngx_mail_auth_http_init (ngx_mail_session_t *s) |
Macro Definition Documentation
| #define NGX_IMAP_AUTHENTICATE 7 |
| #define NGX_IMAP_CAPABILITY 3 |
| #define NGX_IMAP_LOGOUT 2 |
| #define NGX_IMAP_STARTTLS 5 |
| #define NGX_MAIL_AUTH_APOP 3 |
| #define NGX_MAIL_AUTH_APOP_ENABLED 0x0008 |
| #define NGX_MAIL_AUTH_CRAM_MD5 4 |
| #define NGX_MAIL_AUTH_CRAM_MD5_ENABLED 0x0010 |
| #define NGX_MAIL_AUTH_LOGIN 1 |
| #define NGX_MAIL_AUTH_LOGIN_ENABLED 0x0004 |
| #define NGX_MAIL_AUTH_LOGIN_USERNAME 2 |
| #define NGX_MAIL_AUTH_NONE 5 |
| #define NGX_MAIL_AUTH_NONE_ENABLED 0x0020 |
| #define NGX_MAIL_AUTH_PLAIN 0 |
| #define NGX_MAIL_AUTH_PLAIN_ENABLED 0x0002 |
| #define ngx_mail_conf_get_module_main_conf |
( |
|
cf, |
|
|
|
module |
|
) |
| ((ngx_mail_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] |
| #define ngx_mail_conf_get_module_srv_conf |
( |
|
cf, |
|
|
|
module |
|
) |
| ((ngx_mail_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index] |
| #define ngx_mail_delete_ctx |
( |
|
s, |
|
|
|
module |
|
) |
| s->ctx[module.ctx_index] = NULL; |
| #define ngx_mail_get_module_ctx |
( |
|
s, |
|
|
|
module |
|
) |
| (s)->ctx[module.ctx_index] |
| #define ngx_mail_get_module_main_conf |
( |
|
s, |
|
|
|
module |
|
) |
| (s)->main_conf[module.ctx_index] |
| #define ngx_mail_get_module_srv_conf |
( |
|
s, |
|
|
|
module |
|
) |
| (s)->srv_conf[module.ctx_index] |
| #define NGX_MAIL_IMAP_PROTOCOL 1 |
| #define NGX_MAIL_MAIN_CONF 0x02000000 |
| #define NGX_MAIL_MODULE 0x4C49414D /* "MAIL" */ |
| #define NGX_MAIL_PARSE_INVALID_COMMAND 20 |
| #define NGX_MAIL_POP3_PROTOCOL 0 |
| #define ngx_mail_set_ctx |
( |
|
s, |
|
|
|
c, |
|
|
|
module |
|
) |
| s->ctx[module.ctx_index] = c; |
| #define NGX_MAIL_SMTP_PROTOCOL 2 |
| #define NGX_MAIL_SRV_CONF 0x04000000 |
| #define NGX_SMTP_STARTTLS 13 |
Typedef Documentation
| typedef void(* ngx_mail_auth_state_pt)(ngx_event_t *rev) |
| typedef void(* ngx_mail_init_protocol_pt)(ngx_event_t *rev) |
Enumeration Type Documentation
- Enumerator:
| ngx_imap_start |
|
| ngx_imap_auth_login_username |
|
| ngx_imap_auth_login_password |
|
| ngx_imap_auth_plain |
|
| ngx_imap_auth_cram_md5 |
|
| ngx_imap_login |
|
| ngx_imap_user |
|
| ngx_imap_passwd |
|
Definition at line 159 of file ngx_mail.h.
- Enumerator:
| ngx_pop3_start |
|
| ngx_pop3_user |
|
| ngx_pop3_passwd |
|
| ngx_pop3_auth_login_username |
|
| ngx_pop3_auth_login_password |
|
| ngx_pop3_auth_plain |
|
| ngx_pop3_auth_cram_md5 |
|
Definition at line 148 of file ngx_mail.h.
- Enumerator:
| ngx_smtp_start |
|
| ngx_smtp_auth_login_username |
|
| ngx_smtp_auth_login_password |
|
| ngx_smtp_auth_plain |
|
| ngx_smtp_auth_cram_md5 |
|
| ngx_smtp_helo |
|
| ngx_smtp_helo_xclient |
|
| ngx_smtp_helo_from |
|
| ngx_smtp_xclient |
|
| ngx_smtp_xclient_from |
|
| ngx_smtp_xclient_helo |
|
| ngx_smtp_from |
|
| ngx_smtp_to |
|
Definition at line 171 of file ngx_mail.h.
Function Documentation
| u_char* ngx_mail_log_error |
( |
ngx_log_t * |
log, |
|
|
u_char * |
buf, |
|
|
size_t |
len |
|
) |
| |
Variable Documentation