From 5ad2b6293e6882c5676dc039cabf47d02c0d7a41 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Oct 1998 15:01:59 +0000 Subject: Make authentication failures more visible by syslogging them. svn path=/trunk/; revision=2107 --- NEWS | 3 +++ fetchmail.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 05fa1d86..7b4aa60e 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ fetchmail-4.6.3 (): * Introduced `debug' verbosity, invocable by -v -v. +* Make authentication failures more visible by syslogging them. + +There are 252 people on fetchmail-friends and 295 on fetchmail-announce. fetchmail-4.6.2 (Fri Oct 16 12:49:30 EDT 1998): * Time out server open requests like we do reads. This protects against 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); -- cgit v1.2.3