From 8d2add3485389e4b538c1fc01a5b6584836637c1 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 8 Nov 2004 09:25:06 +0000 Subject: Disable the sleep(3) after POP3 login. Submitted by Brian Candler. svn path=/trunk/; revision=3983 --- pop3.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pop3.c') 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)); -- cgit v1.2.3