diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-01 09:31:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-01 09:31:00 +0000 |
commit | 05c9daa83bea5177bdaba5630806e91781b0f5b2 (patch) | |
tree | 4d708ec2176b21252ccc5a2027b1d33c187a4390 /pop2.c | |
parent | a9f0b0fd7bf5d290a7d93c94c04c1dc78c82c44e (diff) | |
download | fetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.tar.gz fetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.tar.bz2 fetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.zip |
Simplify the driver main loop.
svn path=/trunk/; revision=189
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -68,12 +68,11 @@ char *buf; queryctl->remotename, queryctl->password)); } -static pop2_getrange(socket, queryctl, countp, firstp) +static pop2_getrange(socket, queryctl, countp) /* get range of messages to be fetched */ int socket; struct hostrec *queryctl; int *countp; -int *firstp; { /* * We should have picked up a count of messages in the user's @@ -93,7 +92,6 @@ int *firstp; return(PS_ERROR); } - *firstp = 1; *countp = pound_arg; return(0); @@ -127,7 +125,7 @@ int number; return(gen_transact(socket, queryctl->keep ? "ACKS" : "ACKD")); } -static struct method pop2 = +const static struct method pop2 = { "POP2", /* Post Office Protocol v2 */ 109, /* standard POP2 port */ @@ -136,7 +134,7 @@ static struct method pop2 = pop2_ok, /* parse command response */ pop2_getauth, /* get authorization */ pop2_getrange, /* query range of messages */ - NULL, /* no UID check */ + NULL, /* messages are always new */ pop2_fetch, /* request given message */ pop2_trail, /* eat message trailer */ NULL, /* no POP2 delete method */ |