From 4cb267590512956e78cc054f816fc6294088ce2b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 6 Oct 1997 20:34:29 +0000 Subject: Better behavior on line hits. svn path=/trunk/; revision=1485 --- pop3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 090b292c..d3b95742 100644 --- a/pop3.c +++ b/pop3.c @@ -483,7 +483,12 @@ static int pop3_delete(int sock, struct query *ctl, int number) static int pop3_logout(int sock, struct query *ctl) /* send logout command */ { - return(gen_transact(sock, "QUIT")); + int ok = gen_transact(sock, "QUIT"); + + if (!ok) + expunge_uids(ctl); + + return(ok); } const static struct method pop3 = -- cgit v1.2.3