From 0b98816ce31faadc6d33d646c43d1352cf82ce24 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 29 Jun 2011 22:46:59 +0000 Subject: [PATCH] fix the GETMETADATA command; we mustn't count our naive split of the comand, it will fail if we have blanks in roomnames. this fixes troubles seen with citadel <-> bynari connector. --- citadel/modules/imap/imap_metadata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/citadel/modules/imap/imap_metadata.c b/citadel/modules/imap/imap_metadata.c index 7dc3179ad..5018066d1 100644 --- a/citadel/modules/imap/imap_metadata.c +++ b/citadel/modules/imap/imap_metadata.c @@ -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", -- 2.30.2