From 4b493b7cf285fa8ee2c572987e2e59ec3a743c0b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 6 Sep 2012 02:06:32 +0200 Subject: [PATCH] Make APOP timestamp complaint less obtrusive. --- pop3.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.43.2