]> Pileus Git - ~andy/fetchmail/commitdiff
Make APOP timestamp complaint less obtrusive.
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 6 Sep 2012 00:06:32 +0000 (02:06 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 6 Sep 2012 00:06:32 +0000 (02:06 +0200)
pop3.c

diff --git a/pop3.c b/pop3.c
index a84bbcc3aadb8740af1754eea454ea14abd6a394..47d121470c7a9ce1bceb67f1391dfc296227abb5 100644 (file)
--- 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;
     }