aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-11-08 09:25:06 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-11-08 09:25:06 +0000
commit8d2add3485389e4b538c1fc01a5b6584836637c1 (patch)
treeb3cef41e95c96d56ca05b0a55e24935728363f49
parent9cf917b17aa9e0059dc647a1216d47211b5eb454 (diff)
downloadfetchmail-8d2add3485389e4b538c1fc01a5b6584836637c1.tar.gz
fetchmail-8d2add3485389e4b538c1fc01a5b6584836637c1.tar.bz2
fetchmail-8d2add3485389e4b538c1fc01a5b6584836637c1.zip
Disable the sleep(3) after POP3 login. Submitted by Brian Candler.
svn path=/trunk/; revision=3983
-rw-r--r--pop3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 826309c3..2c7f883c 100644
--- a/pop3.c
+++ b/pop3.c
@@ -575,6 +575,12 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
return(ok);
}
+/* Disable the sleep. Based on patch by Brian Candler 2004-04-19/2004-11-08,
+ * accepted by Matthias Andree.
+ *
+ * Rationale: the server must have locked the spool before returning +OK;
+ * this sleep just wastes time and hence, for modem and CSD users, money. */
+#ifdef WANT_BOGUS
/*
* Empirical experience shows some server/OS combinations
* may need a brief pause even after any lockfiles on the
@@ -583,6 +589,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
* this is only ever an issue with extremely large mailboxes.
*/
sleep(3); /* to be _really_ safe, probably need sleep(5)! */
+#endif
/* we're peek-capable if use of TOP is enabled */
peek_capable = !(ctl->fetchall || (ctl->keep && !ctl->server.uidl));