diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-01-16 23:49:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-01-16 23:49:02 +0000 |
commit | 91edebd962aa90b42cb75b39064dd7e4e27841f1 (patch) | |
tree | 704172f5b6c5b8acb5532fe2be1a87a34ae9bfd0 /driver.c | |
parent | 1678177dafd26844079cff785865550e0b1ddb41 (diff) | |
download | fetchmail-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; } } |