From aa0d39fe51eb00dcb82969d273782b25884f105a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 26 Aug 1996 21:31:20 +0000 Subject: We have IMAP support. svn path=/trunk/; revision=65 --- pop2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index affe8496..54d2939d 100644 --- a/pop2.c +++ b/pop2.c @@ -308,7 +308,7 @@ int socket; char buf [POPBUFSIZE]; /* read the greeting from the server */ - if (SockGets(socket, buf, sizeof(buf)) == 0) { + if (SockGets(socket, buf, sizeof(buf)) >= 0) { /* echo the server's greeting to the user */ if (outlevel > O_SILENT) @@ -353,7 +353,7 @@ int socket; char buf [POPBUFSIZE]; /* read the NMBR (#ccc) message from the server */ - if (SockGets(socket, buf, sizeof(buf)) == 0) { + if (SockGets(socket, buf, sizeof(buf)) >= 0) { /* is the message in the proper format? */ if (*buf == '#') { @@ -402,7 +402,7 @@ int socket; char buf [POPBUFSIZE]; /* read the SIZE message (=ccc) from the server */ - if (SockGets(socket, buf, sizeof(buf)) == 0) + if (SockGets(socket, buf, sizeof(buf)) >= 0) /* is the message in the correct format? */ if (*buf == '=') { msgsize = atoi(buf + 1); -- cgit v1.2.3