aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-06 20:34:29 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-06 20:34:29 +0000
commit4cb267590512956e78cc054f816fc6294088ce2b (patch)
treed77223b3537ccb534e1a0a591ad671c52f44b0b7 /pop3.c
parentf91581a8545a79da9d400e981de6f1ef73d2569a (diff)
downloadfetchmail-4cb267590512956e78cc054f816fc6294088ce2b.tar.gz
fetchmail-4cb267590512956e78cc054f816fc6294088ce2b.tar.bz2
fetchmail-4cb267590512956e78cc054f816fc6294088ce2b.zip
Better behavior on line hits.
svn path=/trunk/; revision=1485
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 =