aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
commitb476ac337200fe5ed62494feb1280652eae57025 (patch)
tree7f2acaae88e7ce2ef38c04df89afa16a40ffdb8f /etrn.c
parentf06b1846a2580c3b19a89f5f5e76b7d509afb3c9 (diff)
downloadfetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.gz
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.bz2
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.zip
Progress messages now go to stdout.
svn path=/trunk/; revision=2328
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c20
1 files changed, 10 insertions, 10 deletions
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 <x> 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 <x> */
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 <x> started */
case 253: /* OK, <n> pending messages for node <x> 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 <x> */
- 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 <x> not allowed: <reason> */
- 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);
}
}