From 05c9daa83bea5177bdaba5630806e91781b0f5b2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Oct 1996 09:31:00 +0000 Subject: Simplify the driver main loop. svn path=/trunk/; revision=189 --- pop2.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index 0025db41..351aaa04 100644 --- a/pop2.c +++ b/pop2.c @@ -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 */ -- cgit v1.2.3