aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 7f7bcb56..1046aa66 100644
--- a/pop3.c
+++ b/pop3.c
@@ -711,6 +711,13 @@ static int pop3_logout(int sock, struct query *ctl)
{
int ok;
+ /*
+ * Just in case the server marks messages deleted when seen.
+ * Yes, this has been reported, in the MercuryP/NLM server.
+ */
+ if (ctl->keep)
+ gen_transact(sock, "RSET");
+
ok = gen_transact(sock, "QUIT");
if (!ok)
expunge_uids(ctl);