[evolution-data-server] CamelIMAPXNamespace: Allow NIL separator character.



commit 0869acc54da864f819b1d1fff51f23bdc48f991d
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Thu Jan 9 11:20:13 2014 -0500

    CamelIMAPXNamespace: Allow NIL separator character.
    
    RFC 2342 allows it:
    
      Namespace_Response = "*" SP "NAMESPACE" SP Namespace SP Namespace
                           SP Namespace
    
      Namespace = nil / "(" 1*( "(" string SP  (<"> QUOTED_CHAR <"> /
                  nil) *(Namespace_Response_Extension) ")" ) ")"
                  ^^^

 camel/providers/imapx/camel-imapx-namespace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-namespace.c b/camel/providers/imapx/camel-imapx-namespace.c
index c94f520..2ba7d09 100644
--- a/camel/providers/imapx/camel-imapx-namespace.c
+++ b/camel/providers/imapx/camel-imapx-namespace.c
@@ -91,8 +91,8 @@ camel_imapx_namespace_new (CamelIMAPXNamespaceCategory category,
 {
        CamelIMAPXNamespace *namespace;
 
+       /* Note, mailbox path separator can be NIL. */
        g_return_val_if_fail (prefix != NULL, NULL);
-       g_return_val_if_fail (separator != '\0', NULL);
 
        /* Not bothering with GObject properties for this class. */
 


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