comparison src/mail/ngx_mail_auth_http_module.c @ 404:481e8f936572

Mail: rename "unauth" to "none".
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 23 Jul 2007 23:30:01 +0000
parents f1e2fab7a46c
children 4243eecbd594
comparison
equal deleted inserted replaced
403:d4cac61d8e95 404:481e8f936572
136 static ngx_str_t ngx_mail_auth_http_method[] = { 136 static ngx_str_t ngx_mail_auth_http_method[] = {
137 ngx_string("plain"), 137 ngx_string("plain"),
138 ngx_string("plain"), 138 ngx_string("plain"),
139 ngx_string("apop"), 139 ngx_string("apop"),
140 ngx_string("cram-md5"), 140 ngx_string("cram-md5"),
141 ngx_string("unauth") 141 ngx_string("none")
142 }; 142 };
143 143
144 static ngx_str_t ngx_mail_smtp_errcode = ngx_string("535 5.7.0"); 144 static ngx_str_t ngx_mail_smtp_errcode = ngx_string("535 5.7.0");
145 145
146 void 146 void
1229 b->last = ngx_cpymem(b->last, "Client-IP: ", sizeof("Client-IP: ") - 1); 1229 b->last = ngx_cpymem(b->last, "Client-IP: ", sizeof("Client-IP: ") - 1);
1230 b->last = ngx_copy(b->last, s->connection->addr_text.data, 1230 b->last = ngx_copy(b->last, s->connection->addr_text.data,
1231 s->connection->addr_text.len); 1231 s->connection->addr_text.len);
1232 *b->last++ = CR; *b->last++ = LF; 1232 *b->last++ = CR; *b->last++ = LF;
1233 1233
1234 if (s->auth_method == NGX_MAIL_AUTH_UNAUTH) { 1234 if (s->auth_method == NGX_MAIL_AUTH_NONE) {
1235 1235
1236 /* HELO / MAIL FROM / RCPT TO can't contain CRLF, no need to escape */ 1236 /* HELO / MAIL FROM / RCPT TO can't contain CRLF, no need to escape */
1237 1237
1238 b->last = ngx_cpymem(b->last, "Auth-SMTP-Helo: ", 1238 b->last = ngx_cpymem(b->last, "Auth-SMTP-Helo: ",
1239 sizeof("Auth-SMTP-Helo: ") - 1); 1239 sizeof("Auth-SMTP-Helo: ") - 1);