From b476ac337200fe5ed62494feb1280652eae57025 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 5 Jan 1999 04:40:25 +0000 Subject: Progress messages now go to stdout. svn path=/trunk/; revision=2328 --- etrn.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'etrn.c') diff --git a/etrn.c b/etrn.c index 2ead70d7..341bf768 100644 --- a/etrn.c +++ b/etrn.c @@ -39,13 +39,13 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id, if ((ok = SMTP_ehlo(sock, fetchmailhost, &opts))) { - error(0, 0, _("%s's SMTP listener does not support ESMTP"), + report(stderr, 0, _("%s's SMTP listener does not support ESMTP"), ctl->server.pollname); return(ok); } else if (!(opts & ESMTP_ETRN)) { - error(0, 0, _("%s's SMTP listener does not support ETRN"), + report(stderr, 0, _("%s's SMTP listener does not support ETRN"), ctl->server.pollname); return(PS_PROTOCOL); } @@ -69,38 +69,38 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id, { case 250: /* OK, queuing for node started */ if (outlevel >= O_SILENT) - progress(0, 0, _("Queuing for %s started"), qnp->id); + report(stdout, 0, _("Queuing for %s started"), qnp->id); break; case 251: /* OK, no messages waiting for node */ if (outlevel >= O_SILENT) - progress(0, 0, _("No messages waiting for %s"), qnp->id); + report(stdout, 0, _("No messages waiting for %s"), qnp->id); return(PS_NOMAIL); case 252: /* OK, pending messages for node started */ case 253: /* OK, pending messages for node started */ if (outlevel >= O_SILENT) - progress(0, 0, _("Pending messages for %s started"), qnp->id); + report(stdout, 0, _("Pending messages for %s started"), qnp->id); break; case 458: /* Unable to queue messages for node */ - error(0, -1, _("Unable to queue messages for node %s"),qnp->id); + report(stderr, -1, _("Unable to queue messages for node %s"),qnp->id); return(PS_PROTOCOL); case 459: /* Node not allowed: */ - error(0, -1, _("Node %s not allowed: %s"), qnp->id, buf); + report(stderr, -1, _("Node %s not allowed: %s"), qnp->id, buf); return(PS_AUTHFAIL); case 500: /* Syntax Error */ - error(0, -1, _("ETRN syntax error")); + report(stderr, -1, _("ETRN syntax error")); return(PS_PROTOCOL); case 501: /* Syntax Error in Parameters */ - error(0, -1, _("ETRN syntax error in parameters")); + report(stderr, -1, _("ETRN syntax error in parameters")); return(PS_PROTOCOL); default: - error(0, -1, _("Unknown ETRN error %d"), atoi(buf)); + report(stderr, -1, _("Unknown ETRN error %d"), atoi(buf)); return(PS_PROTOCOL); } } -- cgit v1.2.3