From ed3bd0c5048cac6def24c3d70f3eaaf449a38a82 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Sep 1997 20:07:16 +0000 Subject: Added --expunge option for Richard Kooidjman. svn path=/trunk/; revision=1430 --- pop2.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index c3a4b650..db34cc32 100644 --- a/pop2.c +++ b/pop2.c @@ -114,6 +114,12 @@ static int pop2_trail(int sock, struct query *ctl, int number) return(gen_transact(sock, ctl->keep ? "ACKS" : "ACKD")); } +static int pop2_logout(int sock, struct query *ctl) +/* send logout command */ +{ + return(gen_transact(sock, "QUIT")); +} + const static struct method pop2 = { "POP2", /* Post Office Protocol v2 */ @@ -129,7 +135,7 @@ const static struct method pop2 = NULL, /* no way to fetch body alone */ pop2_trail, /* eat message trailer */ NULL, /* no POP2 delete method */ - "QUIT", /* the POP2 exit command */ + pop2_logout, /* log out, we're done */ }; int doPOP2 (struct query *ctl) -- cgit v1.2.3