aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
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,