aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-03 15:45:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-03 15:45:19 +0000
commit86c75af0c1cae1706b84b708c70e76a96ddc5641 (patch)
tree60664bf7a9a103667fbfea4dba0251e439f41f67 /driver.c
parenteb9b73194c24bd4e08b1bcaf254a5bbb8aa91c1f (diff)
downloadfetchmail-86c75af0c1cae1706b84b708c70e76a96ddc5641.tar.gz
fetchmail-86c75af0c1cae1706b84b708c70e76a96ddc5641.tar.bz2
fetchmail-86c75af0c1cae1706b84b708c70e76a96ddc5641.zip
LOCKBUSY changes.
svn path=/trunk/; revision=1147
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/driver.c b/driver.c
index 3d3078d4..52383ee6 100644
--- a/driver.c
+++ b/driver.c
@@ -1364,13 +1364,20 @@ const struct method *proto; /* protocol method table */
shroud = ctl->password;
ok = (protocol->getauth)(sock, ctl, buf);
shroud = (char *)NULL;
- if (ok == PS_ERROR)
- ok = PS_AUTHFAIL;
if (ok != 0)
{
- error(0, -1, "Authorization failure on %s@%s",
- ctl->remotename,
- realname);
+ if (ok == PS_LOCKBUSY)
+ error(0, -1, "Lock Busy error on %s@%s",
+ ctl->remotename,
+ realname);
+ else
+ {
+ if (ok == PS_ERROR)
+ ok = PS_AUTHFAIL;
+ error(0, -1, "Authorization failure on %s@%s",
+ ctl->remotename,
+ realname);
+ }
goto cleanUp;
}
set_timeout(ctl->server.timeout);
@@ -1678,6 +1685,9 @@ const struct method *proto; /* protocol method table */
case PS_PROTOCOL:
msg = "client/server protocol";
break;
+ case PS_LOCKBUSY:
+ msg = "lock busy on server";
+ break;
case PS_SMTP:
msg = "SMTP transaction";
break;
@@ -1685,8 +1695,9 @@ const struct method *proto; /* protocol method table */
error(0, 0, "undefined");
break;
}
- if (ok==PS_SOCKET || ok==PS_AUTHFAIL || ok==PS_SYNTAX || ok==PS_IOERR
- || ok==PS_ERROR || ok==PS_PROTOCOL || ok==PS_SMTP)
+ if (ok==PS_SOCKET || ok==PS_AUTHFAIL || ok==PS_SYNTAX
+ || ok==PS_IOERR || ok==PS_ERROR || ok==PS_PROTOCOL
+ || ok==PS_LOCKBUSY || ok==PS_SMTP)
error(0, -1, "%s error while fetching from %s", msg, ctl->server.names->id);
closeUp: