]> git.kaiwu.me - nginx.git/commitdiff
Removed the deprecated "imap" directive.
authorRuslan Ermilov <ru@nginx.com>
Wed, 29 Apr 2015 10:53:24 +0000 (13:53 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 29 Apr 2015 10:53:24 +0000 (13:53 +0300)
src/mail/ngx_mail.c

index 3e4b2cbf4ea33df247c2d5a19cc117edce5680cf..48ce2861759cfb66e00a8f2a051d9179f517d7c1 100644 (file)
@@ -36,13 +36,6 @@ static ngx_command_t  ngx_mail_commands[] = {
       0,
       NULL },
 
-    { ngx_string("imap"),
-      NGX_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS,
-      ngx_mail_block,
-      0,
-      0,
-      NULL },
-
       ngx_null_command
 };
 
@@ -83,12 +76,6 @@ ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
     ngx_mail_core_srv_conf_t   **cscfp;
     ngx_mail_core_main_conf_t   *cmcf;
 
-    if (cmd->name.data[0] == 'i') {
-        ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
-                           "the \"imap\" directive is deprecated, "
-                           "use the \"mail\" directive instead");
-    }
-
     /* the main mail context */
 
     ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t));