From: Wilfried Goesgens Date: Wed, 29 Jun 2011 22:46:59 +0000 (+0000) Subject: fix the GETMETADATA command; we mustn't count our naive split of the comand, it will... X-Git-Tag: v7.87~18 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=0b98816ce31faadc6d33d646c43d1352cf82ce24;hp=efd0c022f16e2daa33dd6acfb26b465bdf2402f6;p=citadel.git 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. --- 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",