aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-08-26 21:31:20 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-08-26 21:31:20 +0000
commitaa0d39fe51eb00dcb82969d273782b25884f105a (patch)
treef66545a418d82ccf393e6091e5bb942bf69eea5f /pop3.c
parent2f5adc9ba38c8df30e80cb7ad04f1a54de557f80 (diff)
downloadfetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.tar.gz
fetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.tar.bz2
fetchmail-aa0d39fe51eb00dcb82969d273782b25884f105a.zip
We have IMAP support.
svn path=/trunk/; revision=65
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index fa3902b9..5926389e 100644
--- a/pop3.c
+++ b/pop3.c
@@ -145,7 +145,7 @@ struct hostrec *queryctl;
*/
if (use_uidl && queryctl->lastid[0]) {
if ((ok = POP3_sendUIDL(-1, socket, 0)) == 0) {
- while (SockGets(socket, buf, sizeof(buf)) == 0) {
+ while (SockGets(socket, buf, sizeof(buf)) >= 0) {
if (outlevel == O_VERBOSE)
fprintf(stderr,"%s\n",buf);
if (strcmp(buf, ".\n") == 0) {
@@ -325,7 +325,7 @@ int socket;
char buf [POPBUFSIZE];
char *bufp;
- if (SockGets(socket, buf, sizeof(buf)) == 0) {
+ if (SockGets(socket, buf, sizeof(buf)) >= 0) {
if (outlevel == O_VERBOSE)
fprintf(stderr,"%s\n",buf);