use return values from correct set in get_cmd_result()
DRV_OK == RESP_OK, so this worked by accident
This commit is contained in:
parent
99cc328f17
commit
83efbe327d
|
@ -1066,7 +1066,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
|
||||||
if (!cmdp->param.cont)
|
if (!cmdp->param.cont)
|
||||||
ctx->literal_pending = 0;
|
ctx->literal_pending = 0;
|
||||||
if (!tcmd)
|
if (!tcmd)
|
||||||
return DRV_OK;
|
return RESP_OK;
|
||||||
} else {
|
} else {
|
||||||
tag = atoi( arg );
|
tag = atoi( arg );
|
||||||
for (pcmdp = &ctx->in_progress; (cmdp = *pcmdp); pcmdp = &cmdp->next)
|
for (pcmdp = &ctx->in_progress; (cmdp = *pcmdp); pcmdp = &cmdp->next)
|
||||||
|
@ -1084,7 +1084,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
|
||||||
if (!strcmp( "OK", arg )) {
|
if (!strcmp( "OK", arg )) {
|
||||||
if (cmdp->param.to_trash)
|
if (cmdp->param.to_trash)
|
||||||
ctx->trashnc = 0; /* Can't get NO [TRYCREATE] any more. */
|
ctx->trashnc = 0; /* Can't get NO [TRYCREATE] any more. */
|
||||||
resp = DRV_OK;
|
resp = RESP_OK;
|
||||||
} else {
|
} else {
|
||||||
if (!strcmp( "NO", arg )) {
|
if (!strcmp( "NO", arg )) {
|
||||||
if (cmdp->param.create && cmd && (cmdp->param.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */
|
if (cmdp->param.create && cmd && (cmdp->param.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user