From: Matthias Andree Date: Thu, 6 Sep 2012 00:06:32 +0000 (+0200) Subject: Make APOP timestamp complaint less obtrusive. X-Git-Url: http://pileus.org/git/?p=~andy%2Ffetchmail;a=commitdiff_plain;h=4b493b7cf285fa8ee2c572987e2e59ec3a743c0b Make APOP timestamp complaint less obtrusive. --- diff --git a/pop3.c b/pop3.c index a84bbcc3..47d12147 100644 --- a/pop3.c +++ b/pop3.c @@ -270,8 +270,10 @@ static int do_apop(int sock, struct query *ctl, char *greeting) /* find start of timestamp */ start = strchr(greeting, '<'); if (!start) { - report(stderr, - GT_("Required APOP timestamp not found in greeting\n")); + if (ctl->server.authenticate == A_APOP || outlevel >= O_DEBUG) { + report(ctl->server.authenticate == A_APOP ? stderr : stdout, + GT_("Required APOP timestamp not found in greeting\n")); + } return PS_AUTHFAIL; }