fix the GETMETADATA command; we mustn't count our naive split of the comand, it will...
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 29 Jun 2011 22:46:59 +0000 (22:46 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:07:43 +0000 (21:07 +0000)
this fixes troubles seen with citadel <-> bynari connector.

citadel/modules/imap/imap_metadata.c

index cfbc10370675609cf5bbd8d953baaae9879e8e73..705448e459f6d5b2ea5f3474d58f8507b372327b 100644 (file)
@@ -206,11 +206,13 @@ void imap_getmetadata(int num_parms, ConstStr *Params) {
        int ret;
        int found = 0;
 
+/* this doesn't work if you have rooms/floors with spaces. 
+   we need this for the bynari connector.
        if (num_parms > 5) {
                IReply("BAD usage error");
                return;
        }
-
+*/
        ret = imap_grabroom(roomname, Params[2].Key, 1);
        if (ret != 0) {
                IReply("NO Invalid mailbox name or access denied");