aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-04 06:52:37 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-04 06:52:37 +0000
commit583c01bd0c79df2240867c34c6d4b21813d2e95a (patch)
tree1a37077d1910093ef2d1828fbe298bcf6b543698 /fetchmail.c
parentf7bbf700016dde1025f0706156bdda5ff2f28119 (diff)
downloadfetchmail-583c01bd0c79df2240867c34c6d4b21813d2e95a.tar.gz
fetchmail-583c01bd0c79df2240867c34c6d4b21813d2e95a.tar.bz2
fetchmail-583c01bd0c79df2240867c34c6d4b21813d2e95a.zip
Fix an error in the wedge-detection logic.
svn path=/trunk/; revision=2259
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 7d368e1b..06daa86d 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -513,15 +513,16 @@ int main (int argc, char **argv)
batchcount = 0;
for (ctl = querylist; ctl; ctl = ctl->next)
{
- if (ctl->wedged)
- {
- error(0, -1,
- _("poll of %s skipped (failed authentication or too many timeouts)"),
- ctl->server.pollname);
- continue;
- }
if (ctl->active && !(implicitmode && ctl->server.skip))
{
+ if (ctl->wedged)
+ {
+ error(0, -1,
+ _("poll of %s skipped (failed authentication or too many timeouts)"),
+ ctl->server.pollname);
+ continue;
+ }
+
/* check skip interval first so that it counts all polls */
if (run.poll_interval && ctl->server.interval)
{
@@ -614,8 +615,9 @@ int main (int argc, char **argv)
int unwedged = 0;
for (ctl = querylist; ctl; ctl = ctl->next)
- if (!ctl->wedged)
- unwedged++;
+ if (ctl->active && !(implicitmode && ctl->server.skip))
+ if (!ctl->wedged)
+ unwedged++;
if (!unwedged)
{
error(0, -1, _("All connections are wedged. Exiting."));