From bf4266eadc421b0f1dd6bf6b86c6d93d0ae193a8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 28 Mar 2005 10:43:31 +0000 Subject: [PATCH] quote CREATE argument --- src/drv_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 3c22ec7..0f99da1 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1001,7 +1001,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd ) if (!strcmp( "NO", arg )) { if (cmdp->cb.create && cmd && (cmdp->cb.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */ p = strchr( cmdp->cmd, '"' ); - if (!issue_imap_cmd( ctx, 0, "CREATE %.*s", strchr( p + 1, '"' ) - p + 1, p )) { + if (!issue_imap_cmd( ctx, 0, "CREATE \"%.*s\"", strchr( p + 1, '"' ) - p + 1, p )) { resp = RESP_BAD; goto normal; }