aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-10-31 13:38:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-10-31 13:38:29 +0000
commitcaef674e29106c14aae5e77d82e6c3ab052d3d3b (patch)
tree73417ae78d8a4ac3930b163820d4f243596bf202 /driver.c
parent8cf3fdbd139435d0696e7c16f967bbeb1ab4d701 (diff)
downloadfetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.gz
fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.bz2
fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.zip
Sunil Shetye's minor fixes.
svn path=/trunk/; revision=3762
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index a0596ec0..ab441b74 100644
--- a/driver.c
+++ b/driver.c
@@ -1114,8 +1114,8 @@ const int maxfetch; /* maximum number of messages to fetch */
*/
if (run.poll_interval
&& !ctl->wehavesentauthnote
- && ((ctl->wehaveauthed && ++ctl->authfailcount == 10)
- || ++ctl->authfailcount == 3)
+ && ((ctl->wehaveauthed && ++ctl->authfailcount >= 10)
+ || (!ctl->wehaveauthed && ++ctl->authfailcount >= 3))
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
ctl->wehavesentauthnote = 1;
@@ -1509,6 +1509,7 @@ closeUp:
err = PS_SYNTAX;
}
+ set_timeout(0); /* cancel any pending alarm */
signal(SIGALRM, alrmsave);
signal(SIGPIPE, pipesave);
return(err);