[PATCH 3 of 7] Mail: add ID to the 'ngx_mail_imap_default_capabilities' list

Filipe da Silva fdasilvayy at gmail.com
Tue Jan 14 11:54:20 UTC 2014


# HG changeset patch
# User Filipe da Silva <fdasilvayy at gmail.com>
# Date 1389700241 -3600
#      Tue Jan 14 12:50:41 2014 +0100
# Node ID 56df02d0dad9e7746fed311c88787fcb3ea902d7
# Parent  ece46b257e8d31a1a7a81bf5fcdd0271c1dc2318
Mail: add ID to the 'ngx_mail_imap_default_capabilities' list.

diff -r ece46b257e8d -r 56df02d0dad9 src/mail/ngx_mail_imap_module.c
--- a/src/mail/ngx_mail_imap_module.c	Tue Jan 14 12:50:30 2014 +0100
+++ b/src/mail/ngx_mail_imap_module.c	Tue Jan 14 12:50:41 2014 +0100
@@ -18,6 +18,7 @@
 
 
 static ngx_str_t  ngx_mail_imap_default_capabilities[] = {
+    ngx_string("ID"),
     ngx_string("IMAP4"),
     ngx_string("IMAP4rev1"),
     ngx_string("UIDPLUS"),
@@ -122,7 +123,7 @@
 
     iscf->client_buffer_size = NGX_CONF_UNSET_SIZE;
 
-    if (ngx_array_init(&iscf->capabilities, cf->pool, 4, sizeof(ngx_str_t))
+    if (ngx_array_init(&iscf->capabilities, cf->pool, 5, sizeof(ngx_str_t))
         != NGX_OK)
     {
         return NULL;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 002-ImapID_AsDefaultCapability.diff
Type: text/x-patch
Size: 971 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140114/1b911515/attachment.bin>


More information about the nginx-devel mailing list