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>
Wed, 29 Jun 2011 22:46:59 +0000 (22:46 +0000)
this fixes troubles seen with citadel <-> bynari connector.

citadel/modules/imap/imap_metadata.c

index 7dc3179ad954f0641ef4eaaeecb8f4faa4a4ce04..5018066d1cc3c79d25180aa25fdf6acde8c1278e 100644 (file)
@@ -208,11 +208,13 @@ void imap_getmetadata(int num_parms, ConstStr *Params) {
        int msgs, new;
        int ret;
 
+/* this doesn't work if you have rooms/floors with spaces. 
+   we need this for the bynari connector.
        if (num_parms > 5) {
                cprintf("%s BAD usage error\r\n", Params[0].Key);
                return;
        }
-
+*/
        ret = imap_grabroom(roomname, Params[2].Key, 1);
        if (ret != 0) {
                cprintf("%s NO Invalid mailbox name or access denied\r\n",