diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-30 08:06:05 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-30 08:06:05 +0000 |
commit | a694daec9878ff7fbfbb8ba2c6e40eb2bce6a77c (patch) | |
tree | 2fd4e53547331cf3a2ccae9c1621d6ec65249c0d /fetchmail.c | |
parent | a379197312a968cc5c705dda5f466ad7dfe9847e (diff) | |
download | fetchmail-a694daec9878ff7fbfbb8ba2c6e40eb2bce6a77c.tar.gz fetchmail-a694daec9878ff7fbfbb8ba2c6e40eb2bce6a77c.tar.bz2 fetchmail-a694daec9878ff7fbfbb8ba2c6e40eb2bce6a77c.zip |
Send calling user mail on password failure in daemon mode.
svn path=/trunk/; revision=2153
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index bcad08fb..0e0d3f46 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -367,6 +367,9 @@ int main (int argc, char **argv) /* pick up interactively any passwords we need but don't have */ for (ctl = querylist; ctl; ctl = ctl->next) + { + ctl->authfailcount = 0; + if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password) { if (ctl->server.preauthenticate == A_KERBEROS_V4 || @@ -406,6 +409,7 @@ int main (int argc, char **argv) #undef PASSWORD_PROMPT } } + } /* * Maybe time to go to demon mode... @@ -481,6 +485,13 @@ int main (int argc, char **argv) batchcount = 0; for (ctl = querylist; ctl; ctl = ctl->next) { + if (ctl->authfailcount) + { + error(0, -1, + "poll of %s skipped until authentication is unwedged", + ctl->server.pollname); + continue; + } if (ctl->active && !(implicitmode && ctl->server.skip)) { /* check skip interval first so that it counts all polls */ |