| * Copyright (C) Igor Sysoev |
| static char *ngx_imap_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
| static ngx_command_t ngx_imap_commands[] = { |
| NGX_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS, |
| static ngx_core_module_t ngx_imap_module_ctx = { |
| ngx_module_t ngx_imap_module = { |
| &ngx_imap_module_ctx, /* module context */ |
| ngx_imap_commands, /* module directives */ |
| NGX_CORE_MODULE, /* module type */ |
| static char *ngx_imap_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) |
| ls = ngx_listening_inet_stream_socket(cf, 0, 8110); |
| ls->handler = ngx_imap_init_connection; |
| /* ls->post_accept_timeout = 0; */ |
| ls->log = cf->cycle->new_log; |