commit 99b3288c4a0fee0ec12623777c9fb511dcc588c3 Author: Oswald Buddenhagen <o...@kde.org> Date: Sun Mar 20 16:27:51 2011 +0100
use return values from correct set in get_cmd_result() DRV_OK == RESP_OK, so this worked by accident src/drv_imap.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 947b334..456ac5a 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1066,7 +1066,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd ) if (!cmdp->param.cont) ctx->literal_pending = 0; if (!tcmd) - return DRV_OK; + return RESP_OK; } else { tag = atoi( arg ); 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 (cmdp->param.to_trash) ctx->trashnc = 0; /* Can't get NO [TRYCREATE] any more. */ - resp = DRV_OK; + resp = RESP_OK; } else { if (!strcmp( "NO", arg )) { if (cmdp->param.create && cmd && (cmdp->param.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel