Mercurial > hg > nginx-mail
diff src/mail/ngx_mail_auth_http_module.c @ 394:a96157df5186
Mail: extensibility.
- If mail module enabled, honor mail dependencies while building addons.
- Introduce handlers for external mail modules: handler_init_session,
handler_init_protocol, handler_read.
- Parse some additional smtp commands, fix generic handler to live with
it.
- Some missing macros, some functions (notably command parsing) non-static.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 18 Jul 2007 00:47:55 +0000 |
parents | fc223117327f |
children | f1e2fab7a46c |
line wrap: on
line diff
--- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c @@ -897,6 +897,10 @@ ngx_mail_auth_sleep_handler(ngx_event_t ngx_add_timer(rev, cscf->timeout); + if (cscf->handler_read) { + s->connection->read->handler = cscf->handler_read; + } + if (rev->ready) { s->connection->read->handler(rev); return;