diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-18 15:01:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-18 15:01:59 +0000 |
commit | 5ad2b6293e6882c5676dc039cabf47d02c0d7a41 (patch) | |
tree | c68dff6dfe440404940e354fb9e1fccc748cce21 /fetchmail.c | |
parent | e1676c1d63bc5b5070c599357a7968b6ae5935e7 (diff) | |
download | fetchmail-5ad2b6293e6882c5676dc039cabf47d02c0d7a41.tar.gz fetchmail-5ad2b6293e6882c5676dc039cabf47d02c0d7a41.tar.bz2 fetchmail-5ad2b6293e6882c5676dc039cabf47d02c0d7a41.zip |
Make authentication failures more visible by syslogging them.
svn path=/trunk/; revision=2107
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index e56ee867..939eb377 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -528,6 +528,11 @@ int main (int argc, char **argv) } #endif /* POP3_ENABLE */ } + else if (querystatus == PS_AUTHFAIL) { + /* have it logged with priority LOG_ALERT */ + error(querystatus, -1, "Authentication failed for %s@%s", + ctl->remotename, visbuf(ctl->server.pollname)); + } else if (!check_only && ((querystatus!=PS_NOMAIL) || (outlevel==O_DEBUG))) error(0, 0, "Query status=%d", querystatus); |