changeset 937:b6a15094b8e1 HEAD

STATUS reply didn't quote the mailbox name, which broke it if it contained spaces.
author Timo Sirainen <tss@iki.fi>
date Fri, 10 Jan 2003 13:02:10 +0200
parents ced60aed95bb
children 54e2ef691f93
files src/imap/cmd-status.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-status.c	Fri Jan 10 03:48:06 2003 +0200
+++ b/src/imap/cmd-status.c	Fri Jan 10 13:02:10 2003 +0200
@@ -2,6 +2,7 @@
 
 #include "common.h"
 #include "str.h"
+#include "strescape.h"
 #include "commands.h"
 
 /* Returns status items, or -1 if error */
@@ -109,7 +110,7 @@
 	}
 
 	str = t_str_new(128);
-	str_printfa(str, "* STATUS %s (", mailbox);
+	str_printfa(str, "* STATUS \"%s\" (", str_escape(mailbox));
 	if (items & STATUS_MESSAGES)
 		str_printfa(str, "MESSAGES %u ", status.messages);
 	if (items & STATUS_RECENT)