aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c7
1 files changed, 6 insertions, 1 deletions
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 =