diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-28 20:43:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-28 20:43:39 +0000 |
commit | 27a0815dbc15b1e837b115ade6f5e035152b60f9 (patch) | |
tree | 130e7244fc425f516ce11a34adc6c1a4fe06a861 /pop3.c | |
parent | 83a3ffda69ae3d81dc97ce93467dec75db32c5cd (diff) | |
download | fetchmail-27a0815dbc15b1e837b115ade6f5e035152b60f9.tar.gz fetchmail-27a0815dbc15b1e837b115ade6f5e035152b60f9.tar.bz2 fetchmail-27a0815dbc15b1e837b115ade6f5e035152b60f9.zip |
The great options massacre.
svn path=/trunk/; revision=178
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -64,7 +64,6 @@ char *greeting; { char buf [POPBUFSIZE+1]; -#if defined(HAVE_APOP_SUPPORT) /* build MD5 digest from greeting timestamp + password */ if (queryctl->protocol == P_APOP) { @@ -96,7 +95,6 @@ char *greeting; strcpy(queryctl->digest, MD5Digest(msg)); free(msg); } -#endif /* HAVE_APOP_SUPPORT */ switch (queryctl->protocol) { case P_POP3: @@ -119,13 +117,11 @@ char *greeting; goto badAuth; break; -#if defined(HAVE_APOP_SUPPORT) case P_APOP: gen_send(socket,"APOP %s %s", queryctl->remotename, queryctl->digest); if (pop3_ok(buf,socket) != 0) goto badAuth; break; -#endif /* HAVE_APOP_SUPPORT */ default: fprintf(stderr,"Undefined protocol request in POP3_auth\n"); @@ -182,18 +178,14 @@ int *firstp; return(0); } -static int pop3_fetch(socket, number, limit, lenp) +static int pop3_fetch(socket, number, lenp) /* request nth message */ int socket; int number; -int limit; int *lenp; { *lenp = 0; - if (limit) - return(gen_transact(socket, "TOP %d %d", number, limit)); - else - return(gen_transact(socket, "RETR %d", number)); + return(gen_transact(socket, "RETR %d", number)); } static pop3_delete(socket, queryctl, number) |