Browse Source

revert 1.8 - what was i smoking?! the CREATE argument is already quoted;

we just extracted it from the previous command.
wip/ssl-fprint
Oswald Buddenhagen 19 years ago
parent
commit
25db6a3c31
  1. 2
      src/drv_imap.c

2
src/drv_imap.c

@ -1001,7 +1001,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
if (!strcmp( "NO", arg )) { if (!strcmp( "NO", arg )) {
if (cmdp->cb.create && cmd && (cmdp->cb.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */ if (cmdp->cb.create && cmd && (cmdp->cb.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */
p = strchr( cmdp->cmd, '"' ); 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; resp = RESP_BAD;
goto normal; goto normal;
} }

Loading…
Cancel
Save