isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit bf4266eadc421b0f1dd6bf6b86c6d93d0ae193a8
parent 7e31f954701076fbaa9137c25c2d7c31e3f21e05
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Mon, 28 Mar 2005 10:43:31 +0000

quote CREATE argument

Diffstat:
Msrc/drv_imap.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }