aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-01-16 23:49:02 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-01-16 23:49:02 +0000
commit91edebd962aa90b42cb75b39064dd7e4e27841f1 (patch)
tree704172f5b6c5b8acb5532fe2be1a87a34ae9bfd0 /driver.c
parent1678177dafd26844079cff785865550e0b1ddb41 (diff)
downloadfetchmail-91edebd962aa90b42cb75b39064dd7e4e27841f1.tar.gz
fetchmail-91edebd962aa90b42cb75b39064dd7e4e27841f1.tar.bz2
fetchmail-91edebd962aa90b42cb75b39064dd7e4e27841f1.zip
Better authentication-failure handling.
svn path=/trunk/; revision=2711
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index 34972405..c934ea74 100644
--- a/driver.c
+++ b/driver.c
@@ -1678,10 +1678,8 @@ const int maxfetch; /* maximum number of messages to fetch */
report(stderr, _("Lock-busy error on %s@%s\n"),
ctl->remotename,
ctl->server.truename);
- else
+ else if (ok == PS_AUTHFAIL)
{
- if (ok == PS_ERROR)
- ok = PS_AUTHFAIL;
report(stderr, _("Authorization failure on %s@%s\n"),
ctl->remotename,
ctl->server.truename);
@@ -1711,6 +1709,11 @@ const int maxfetch; /* maximum number of messages to fetch */
ctl->wedged = TRUE;
}
}
+ else
+ report(stderr, _("Unknown login or authentication error on %s@%s\n"),
+ ctl->remotename,
+ ctl->server.truename);
+
goto cleanUp;
}
}