comparison src/mail/ngx_mail_imap_module.c @ 382:984bb0b1399b NGINX_0_7_3

nginx 0.7.3 *) Change: the "rss" extension MIME type has been changed to "application/rss+xml". *) Change: now the "gzip_vary" directive turned on issues a "Vary: Accept-Encoding" header line for uncompressed responses too. *) Feature: now the "rewrite" directive does a redirect automatically if the "https://" protocol is used. *) Bugfix: the "proxy_pass" directive did not work with the HTTPS protocol; the bug had appeared in 0.6.9.
author Igor Sysoev <http://sysoev.ru>
date Mon, 23 Jun 2008 00:00:00 +0400
parents 1c519aff5c0c
children ad0a34a8efa6
comparison
equal deleted inserted replaced
381:23d1555141d9 382:984bb0b1399b
181 if (m & conf->auth_methods) { 181 if (m & conf->auth_methods) {
182 size += 1 + ngx_mail_imap_auth_methods_names[i].len; 182 size += 1 + ngx_mail_imap_auth_methods_names[i].len;
183 } 183 }
184 } 184 }
185 185
186 p = ngx_palloc(cf->pool, size); 186 p = ngx_pnalloc(cf->pool, size);
187 if (p == NULL) { 187 if (p == NULL) {
188 return NGX_CONF_ERROR; 188 return NGX_CONF_ERROR;
189 } 189 }
190 190
191 conf->capability.len = size; 191 conf->capability.len = size;
214 *p++ = CR; *p = LF; 214 *p++ = CR; *p = LF;
215 215
216 216
217 size += sizeof(" STARTTLS") - 1; 217 size += sizeof(" STARTTLS") - 1;
218 218
219 p = ngx_palloc(cf->pool, size); 219 p = ngx_pnalloc(cf->pool, size);
220 if (p == NULL) { 220 if (p == NULL) {
221 return NGX_CONF_ERROR; 221 return NGX_CONF_ERROR;
222 } 222 }
223 223
224 conf->starttls_capability.len = size; 224 conf->starttls_capability.len = size;
231 231
232 232
233 size = (auth - conf->capability.data) + sizeof(CRLF) - 1 233 size = (auth - conf->capability.data) + sizeof(CRLF) - 1
234 + sizeof(" STARTTLS LOGINDISABLED") - 1; 234 + sizeof(" STARTTLS LOGINDISABLED") - 1;
235 235
236 p = ngx_palloc(cf->pool, size); 236 p = ngx_pnalloc(cf->pool, size);
237 if (p == NULL) { 237 if (p == NULL) {
238 return NGX_CONF_ERROR; 238 return NGX_CONF_ERROR;
239 } 239 }
240 240
241 conf->starttls_only_capability.len = size; 241 conf->starttls_only_capability.len = size;