aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-05 05:09:40 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-05 05:09:40 +0000
commit813e9e8ffad98b274a8aa1c31fcce76b44ad192e (patch)
tree4beffd92b2456ee5cfe9e58b7143e3140094881a /sink.c
parent3e4f77cb7ebef5b4e119c43bc91e85477a3ac20e (diff)
downloadfetchmail-813e9e8ffad98b274a8aa1c31fcce76b44ad192e.tar.gz
fetchmail-813e9e8ffad98b274a8aa1c31fcce76b44ad192e.tar.bz2
fetchmail-813e9e8ffad98b274a8aa1c31fcce76b44ad192e.zip
error -> report, third stage.
svn path=/trunk/; revision=2330
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sink.c b/sink.c
index 5790ebd4..894b04f4 100644
--- a/sink.c
+++ b/sink.c
@@ -413,7 +413,7 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
* an error when the return code is less specific.
*/
if (smtperr >= 400)
- report(stderr, -1, _("%cMTP error: %s"),
+ report(stderr, 0, _("%cMTP error: %s"),
ctl->listener,
smtp_response);
@@ -516,7 +516,7 @@ int open_sink(struct query *ctl, struct msgblk *msg,
if (ferror(sinkfp))
{
- report(stderr, -1, _("BSMTP file open or preamble write failed"));
+ report(stderr, 0, _("BSMTP file open or preamble write failed"));
return(PS_BSMTP);
}
}
@@ -846,7 +846,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
signal(SIGCHLD, sigchld);
if (rc)
{
- report(stderr, -1, _("MDA exited abnormally or returned nonzero status"));
+ report(stderr, 0, _("MDA exited abnormally or returned nonzero status"));
return(FALSE);
}
}
@@ -858,7 +858,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
fclose(sinkfp);
if (ferror(sinkfp))
{
- report(stderr, -1, _("Message termination or close of BSMTP file failed"));
+ report(stderr, 0, _("Message termination or close of BSMTP file failed"));
return(FALSE);
}
}
@@ -871,7 +871,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
return(FALSE);
else
{
- report(stderr, -1, _("SMTP listener refused delivery"));
+ report(stderr, 0, _("SMTP listener refused delivery"));
return(TRUE);
}
}
@@ -899,9 +899,9 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
* comply.
*/
if (atoi(smtp_response) == 503)
- report(stderr, -1, _("LMTP delivery error on EOM"));
+ report(stderr, 0, _("LMTP delivery error on EOM"));
else
- report(stderr, -1,
+ report(stderr, 0,
_("Unexpected non-503 response to LMTP EOM: %s"),
smtp_response);