From d2b5c1c6dafbc96b517c3accaecbf5387eb625b5 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 cfbc10370..705448e45 100644 --- a/citadel/modules/imap/imap_metadata.c +++ b/citadel/modules/imap/imap_metadata.c @@ -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"); -- 2.30.2