aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-28 21:25:11 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-28 21:25:11 +0000
commita53713a0f8585c6313efd0975cc896788c6ca898 (patch)
tree0d37152fe0df266bb35662709898f505f29e172e /driver.c
parent6df2d8474695b9d1fd5c477c8c43f3cd0e038fe4 (diff)
downloadfetchmail-a53713a0f8585c6313efd0975cc896788c6ca898.tar.gz
fetchmail-a53713a0f8585c6313efd0975cc896788c6ca898.tar.bz2
fetchmail-a53713a0f8585c6313efd0975cc896788c6ca898.zip
Tolerate more than one authorization failure.
svn path=/trunk/; revision=2621
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 cf18ae71..38da2d87 100644
--- a/driver.c
+++ b/driver.c
@@ -1653,10 +1653,11 @@ const int maxfetch; /* maximum number of messages to fetch */
/*
* If we're running in background, try to mail the
* calling user a heads-up about the authentication
- * failure the first time it happens.
+ * failure once it looks like this isn't a fluke
+ * due to the server being temporarily inaccessible.
*/
if (run.poll_interval
- && !ctl->wedged
+ && ctl->authfailcount++ > MAX_AUTHFAILS
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
stuff_warning(ctl,