aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-25 09:56:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-25 09:56:00 +0000
commit88dcfe08b97bb51edd6c1b8a9d20aa5e84012565 (patch)
tree9ad89f6f1258909a262d7d7d5ea370df9ecb95da /pop3.c
parentb7a995759e5d2dc7741c1352d817b38af5cd1ef7 (diff)
downloadfetchmail-88dcfe08b97bb51edd6c1b8a9d20aa5e84012565.tar.gz
fetchmail-88dcfe08b97bb51edd6c1b8a9d20aa5e84012565.tar.bz2
fetchmail-88dcfe08b97bb51edd6c1b8a9d20aa5e84012565.zip
Almost ready to ship.
svn path=/trunk/; revision=3422
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index 83abbaf3..f6e5ddef 100644
--- a/pop3.c
+++ b/pop3.c
@@ -711,13 +711,23 @@ static int pop3_logout(int sock, struct query *ctl)
{
int ok;
+#ifdef __UNUSED__
/*
- * Just in case the server marks messages deleted when seen.
- * Yes, this has been reported, in the MercuryP/NLM server.
- * It's even legal under RFC 1939 (section 8) as a site policy.
+ * We used to do this in case the server marks messages deleted when seen.
+ * (Yes, this has been reported, in the MercuryP/NLM server.
+ * It's even legal under RFC 1939 (section 8) as a site policy.)
+ * It interacted badly with UIDL, though. Thomas Zajic wrote:
+ * "Running 'fetchmail -F -v' and checking the logs, I found out
+ * that fetchmail did in fact flush my mailbox properly, but sent
+ * a RSET just before sending QUIT to log off. This caused the
+ * POP3 server to undo/forget about the previous DELEs, resetting
+ * my mailbox to its original (ie. unflushed) state. The
+ * ~/.fetchids file did get flushed though, so the next time
+ * fetchmail was run it saw all the old messages as new ones ..."
*/
- if (ctl->keep)
+ if (ctl->keep)
gen_transact(sock, "RSET");
+#endif /* __UNUSED__ */
ok = gen_transact(sock, "QUIT");
if (!ok)