diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-08-26 21:31:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-08-26 21:31:20 +0000 |
commit | aa0d39fe51eb00dcb82969d273782b25884f105a (patch) | |
tree | f66545a418d82ccf393e6091e5bb942bf69eea5f /pop2.c | |
parent | 2f5adc9ba38c8df30e80cb7ad04f1a54de557f80 (diff) | |
download | fetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.tar.gz fetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.tar.bz2 fetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.zip |
We have IMAP support.
svn path=/trunk/; revision=65
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |