commit cb4578b8f00fbf7594745a03522af4cbd420f0a2
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Mar 23 09:59:58 2013 +0100
fix cram-md5 authentication
we need to send a newline after the response for imap to grok it.
src/drv_imap.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/drv_imap.c b/src/drv_imap.c
index c790c41..1c29fde 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1209,7 +1209,9 @@ do_cram_auth( imap_store_t *ctx, struct imap_cmd *cmdp,
const char *prompt )
printf( ">+> %s\n", resp );
fflush( stdout );
}
- return socket_write( &ctx->conn, resp, l, GiveOwn );
+ if (socket_write( &ctx->conn, resp, l, GiveOwn ) < 0)
+ return -1;
+ return socket_write( &ctx->conn, "\r\n", 2, KeepOwn );
}
#endif
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel