Mercurial > hg > nginx
comparison src/imap/ngx_imap_handler.c @ 418:cf072d26d6d6
nginx-0.0.10-2004-09-08-09:18:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 08 Sep 2004 05:18:51 +0000 |
parents | 0526206251f6 |
children | 47709bff4468 |
comparison
equal
deleted
inserted
replaced
417:0526206251f6 | 418:cf072d26d6d6 |
---|---|
13 static char imap_greeting[] = "* OK " NGINX_VER " ready" CRLF; | 13 static char imap_greeting[] = "* OK " NGINX_VER " ready" CRLF; |
14 | 14 |
15 | 15 |
16 void ngx_imap_init_connection(ngx_connection_t *c) | 16 void ngx_imap_init_connection(ngx_connection_t *c) |
17 { | 17 { |
18 ngx_int_t rc; | 18 ngx_int_t n; |
19 | 19 |
20 ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, | 20 ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, |
21 "imap init connection"); | 21 "imap init connection"); |
22 | 22 |
23 c->log_error = NGX_ERROR_INFO; | 23 c->log_error = NGX_ERROR_INFO; |
24 | 24 |
25 rc = ngx_send(c, pop3_greeting, sizeof(pop3_greeting) - 1); | 25 n = ngx_send(c, pop3_greeting, sizeof(pop3_greeting) - 1); |
26 | 26 |
27 if (rc == NGX_ERROR) { | 27 if (n == NGX_ERROR) { |
28 ngx_imap_close_connection(c); | 28 ngx_imap_close_connection(c); |
29 return; | 29 return; |
30 } | 30 } |
31 | 31 |
32 c->read->event_handler = ngx_imap_auth_state; | 32 c->read->event_handler = ngx_imap_auth_state; |