commit cd4ab34d1637b37c9cac5b7b8a13112c555aa763
Author: Oswald Buddenhagen <[email protected]>
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 a7a3b1a..eeee9fe 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 */
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel