[Evolution-hackers] [PATCH evolution-data-server] imapx: Remove check for NIL separator



It's fine for it to be NIL and has been seen in wild:

[imapx:A] camel_imapx_write: 'A00004 NAMESPACE
...
[imapx:A] camel_imapx_read: buffer is '* NAMESPACE (("" NIL)) NIL NIL
...
[imapx:A] camel_imapx_write: 'A00005 LIST "" "*"
...
[imapx:A] camel_imapx_read: buffer is '* LIST (\HasNoChildren \NoInferiors) NIL "INBOX"
...

Signed-off-by: Lubomir Rintel <lkundrak v3 sk>
Cc: Matthew Barnes <mbarnes redhat com>
Cc: Milan Crha <mcrha redhat com>
---
This has been tested with MUNI IMAP server along with:
Subject: [PATCH evolution-data-server] imapx: Treat BODY[HEADER] as equivalent to RFC822.HEADER
Date: Sun, 29 Dec 2013 21:10:57 +0100
Message-id: <1388347857-1479-1-git-send-email-lkundrak v3 sk>

 camel/providers/imapx/camel-imapx-namespace.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/camel/providers/imapx/camel-imapx-namespace.c b/camel/providers/imapx/camel-imapx-namespace.c
index c86165b..c924d39 100644
--- a/camel/providers/imapx/camel-imapx-namespace.c
+++ b/camel/providers/imapx/camel-imapx-namespace.c
@@ -93,7 +93,6 @@ camel_imapx_namespace_new (CamelIMAPXNamespaceCategory category,
        CamelIMAPXNamespace *namespace;
 
        g_return_val_if_fail (prefix != NULL, NULL);
-       g_return_val_if_fail (separator != '\0', NULL);
 
        /* Not bothering with GObject properties for this class. */
 
-- 
1.8.4.2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]