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 --- pop3.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 2f1c2a65..d219f7d0 100644 --- a/pop3.c +++ b/pop3.c @@ -443,6 +443,12 @@ static int pop3_delete(int sock, struct query *ctl, int number) return(gen_transact(sock, "DELE %d", number)); } +static int pop3_logout(int sock, struct query *ctl) +/* send logout command */ +{ + return(gen_transact(sock, "QUIT")); +} + const static struct method pop3 = { "POP3", /* Post Office Protocol v3 */ @@ -458,7 +464,7 @@ const static struct method pop3 = NULL, /* no way to fetch body alone */ NULL, /* no message trailer */ pop3_delete, /* how to delete a message */ - "QUIT", /* the POP3 exit command */ + pop3_logout, /* log out, we're done */ }; int doPOP3 (struct query *ctl) -- cgit v1.2.3