diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-02-01 22:27:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-02-01 22:27:17 +0000 |
commit | 191c6b97c84a4680eb04ff42a4d420eac0d8d8e8 (patch) | |
tree | e661ba8e2525b53b59e5b8cfd2318dd36ac345a8 /sink.c | |
parent | 9a9467cafe1c27290eac02c0a6bb6baa480a5096 (diff) | |
download | fetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.tar.gz fetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.tar.bz2 fetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.zip |
Return of the dancing progress dots.
svn path=/trunk/; revision=2369
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 32 |
1 files changed, 17 insertions, 15 deletions
@@ -162,7 +162,7 @@ static int smtp_open(struct query *ctl) ctl->destaddr = ctl->smtpaddress ? ctl->smtpaddress : ( ctl->smtphost ? ctl->smtphost : "localhost"); if (outlevel >= O_DEBUG && ctl->smtp_socket != -1) - report(stdout, 0, _("forwarding to %s"), ctl->smtphost); + report(stdout, 0, _("forwarding to %s\n"), ctl->smtphost); return(ctl->smtp_socket); } @@ -284,7 +284,7 @@ static int send_bouncemail(struct msgblk *msg, int userclass, ts = rfc822timestamp(); if (outlevel >= O_VERBOSE) - report(stdout, 0, "SMTP: (bounce-message body)"); + report(stdout, 0, "SMTP: (bounce-message body)\n"); /* bouncemail headers */ SockPrintf(sock, "Return-Path: <>\r\n"); @@ -411,7 +411,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, 0, _("%cMTP error: %s"), + report(stderr, 0, _("%cMTP error: %s\n"), ctl->listener, smtp_response); @@ -516,7 +516,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, if (ferror(sinkfp)) { - report(stderr, 0, _("BSMTP file open or preamble write failed")); + report(stderr, 0, _("BSMTP file open or preamble write failed\n")); return(PS_BSMTP); } } @@ -637,7 +637,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, if (outlevel >= O_DEBUG) - report(stdout, 0, _("about to deliver with: %s"), before); + report(stdout, 0, _("about to deliver with: %s\n"), before); #ifdef HAVE_SETEUID /* @@ -660,7 +660,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, if (!sinkfp) { - report(stderr, 0, _("MDA open failed")); + report(stderr, 0, _("MDA open failed\n")); return(PS_IOERR); } @@ -677,7 +677,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, /* build a connection to the SMTP listener */ if ((smtp_open(ctl) == -1)) { - report(stderr, errno, _("%cMTP connect to %s failed"), + report(stderr, errno, _("%cMTP connect to %s failed\n"), ctl->listener, ctl->smtphost ? ctl->smtphost : "localhost"); return(PS_SMTP); @@ -756,7 +756,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, idp->val.status.mark = XMIT_RCPTBAD; if (outlevel >= O_VERBOSE) report(stderr, 0, - _("%cMTP listener doesn't like recipient address `%s'"), + _("%cMTP listener doesn't like recipient address `%s'\n"), ctl->listener, addr); } } @@ -786,13 +786,13 @@ int open_sink(struct query *ctl, struct msgblk *msg, if (SMTP_rcpt(ctl->smtp_socket, addr) != SM_OK) { - report(stderr, 0, _("can't even send to %s!"), run.postmaster); + report(stderr, 0, _("can't even send to %s!\n"), run.postmaster); SMTP_rset(ctl->smtp_socket); /* required by RFC1870 */ return(PS_SMTP); } if (outlevel >= O_VERBOSE) - report(stderr, 0, _("no address matches; forwarding to %s."), run.postmaster); + report(stderr, 0, _("no address matches; forwarding to %s.\n"), run.postmaster); } /* @@ -846,7 +846,8 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) signal(SIGCHLD, sigchld); if (rc) { - report(stderr, 0, _("MDA exited abnormally or returned nonzero status")); + report(stderr, 0, + _("MDA exited abnormally or returned nonzero status\n")); return(FALSE); } } @@ -858,7 +859,8 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) fclose(sinkfp); if (ferror(sinkfp)) { - report(stderr, 0, _("Message termination or close of BSMTP file failed")); + report(stderr, 0, + _("Message termination or close of BSMTP file failed\n")); return(FALSE); } } @@ -871,7 +873,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) return(FALSE); else { - report(stderr, 0, _("SMTP listener refused delivery")); + report(stderr, 0, _("SMTP listener refused delivery\n")); return(TRUE); } } @@ -899,10 +901,10 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) * comply. */ if (atoi(smtp_response) == 503) - report(stderr, 0, _("LMTP delivery error on EOM")); + report(stderr, 0, _("LMTP delivery error on EOM\n")); else report(stderr, 0, - _("Unexpected non-503 response to LMTP EOM: %s"), + _("Unexpected non-503 response to LMTP EOM: %s\n"), smtp_response); /* |