From 7b8932176c686ce5586ac881f34c53e5da092d33 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 27 Aug 2013 10:17:51 +0200 Subject: [PATCH] imap fix --- src/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap.c b/src/imap.c index 3ed6809c..94d96f71 100644 --- a/src/imap.c +++ b/src/imap.c @@ -272,7 +272,7 @@ int connect_to_imap_server(int sd, int *seq, char *username, char *password, int snprintf(buf, sizeof(buf)-1, "%s LOGIN %s \"%s\"\r\n", tag, username, password); write1(sd, buf, strlen(buf), use_ssl, data->ssl); - read_response(sd, buf, sizeof(buf), tagok, data, use_ssl); + n = recvtimeoutssl(sd, buf, sizeof(buf), 10, use_ssl, data->ssl); if(strncmp(buf, tagok, strlen(tagok))){ printf("login failed, server reponse: %s\n", buf);