From 07921aefa96266949a198f6b43726369c42bed66 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 Mar 2001 23:53:34 +0000 Subject: Cosmetic fix. svn path=/trunk/; revision=3251 --- driver.c | 80 +++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/driver.c b/driver.c index 56f358b6..9d247761 100644 --- a/driver.c +++ b/driver.c @@ -1901,48 +1901,46 @@ is restored.")); } else { - /* - * This connection has given us authorization - * at least once. - * - * There are dodgy server (clubinternet.fr for - * example) that give spurious authorization - * failures on patently good account/password - * details, then 5 minutes later let you in! - * - * This is meant to build in some tolerance of - * such nasty bits of work - */ - ctl->wehaveauthed = 1; - /*if (ctl->authfailcount >= 3)*/ - if (ctl->wehavesentauthnote) - { - ctl->wehavesentauthnote = 0; - report(stderr, - _("Authorization OK on %s@%s\n"), - ctl->remotename, - ctl->server.truename); - if (!open_warning_by_mail(ctl, (struct msgblk *)NULL)) - { - stuff_warning(ctl, - _("Subject: fetchmail authentication OK\r\n")); - stuff_warning(ctl, - _("Fetchmail was able to log into %s@%s.\r\n"), - ctl->remotename, - ctl->server.truename); - stuff_warning(ctl, - _("Service has been restored.\r\n")); - close_warning_by_mail(ctl, (struct msgblk *)NULL); + /* + * This connection has given us authorization at least once. + * + * There are dodgy server (clubinternet.fr for example) that + * give spurious authorization failures on patently good + * account/password details, then 5 minutes later let you in! + * + * This is meant to build in some tolerance of such nasty bits + * of work. + */ + ctl->wehaveauthed = 1; + /*if (ctl->authfailcount >= 3)*/ + if (ctl->wehavesentauthnote) + { + ctl->wehavesentauthnote = 0; + report(stderr, + _("Authorization OK on %s@%s\n"), + ctl->remotename, + ctl->server.truename); + if (!open_warning_by_mail(ctl, (struct msgblk *)NULL)) + { + stuff_warning(ctl, + _("Subject: fetchmail authentication OK\r\n")); + stuff_warning(ctl, + _("Fetchmail was able to log into %s@%s.\r\n"), + ctl->remotename, + ctl->server.truename); + stuff_warning(ctl, + _("Service has been restored.\r\n")); + close_warning_by_mail(ctl, (struct msgblk *)NULL); - } - } - /* - * Reporting only after the first three - * consecutive failures, or ten consecutive - * failures after we have managed to get - * authorization. - */ - ctl->authfailcount = 0; + } + } + /* + * Reporting only after the first three + * consecutive failures, or ten consecutive + * failures after we have managed to get + * authorization. + */ + ctl->authfailcount = 0; } } -- cgit v1.2.3