aboutsummaryrefslogtreecommitdiff
path: root/src/imap/ngx_imap.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
commit980a92472cc30271ad7e88eb2dcc43f00e984d4d (patch)
treeb8940cd9e6b8859c78e3c023c1373bae02371f2e /src/imap/ngx_imap.c
parentb9e344175f4e971284aa14c8fe685936a4957d52 (diff)
downloadnginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.tar.gz
nginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.zip
nginx-0.0.10-2004-09-05-23:54:02 import
Diffstat (limited to 'src/imap/ngx_imap.c')
-rw-r--r--src/imap/ngx_imap.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/imap/ngx_imap.c b/src/imap/ngx_imap.c
new file mode 100644
index 000000000..900dcb347
--- /dev/null
+++ b/src/imap/ngx_imap.c
@@ -0,0 +1,34 @@
+
+#include <ngx_config.h>
+#include <ngx_core.h>
+#include <ngx_event.h>
+
+
+static ngx_command_t ngx_imap_commands[] = {
+
+ { ngx_string("imap"),
+ NGX_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS,
+ ngx_imap_block,
+ 0,
+ 0,
+ NULL },
+
+ ngx_null_command
+};
+
+
+static ngx_core_module_t ngx_imap_module_ctx = {
+ ngx_string("imap"),
+ NULL,
+ NULL
+};
+
+
+ngx_module_t ngx_imap_module = {
+ NGX_MODULE,
+ &ngx_imap_module_ctx, /* module context */
+ ngx_imap_commands, /* module directives */
+ NGX_CORE_MODULE, /* module type */
+ NULL, /* init module */
+ NULL /* init child */
+};