diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-12-16 16:54:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-12-16 16:54:21 +0000 |
commit | 0e6209d16ed63bd59728ed54822180a57ae1face (patch) | |
tree | fe7f0a847b833dd44835f43c5ae2df71c5ecfeb1 /sink.c | |
parent | f50d39cc0c9f8487dde51788940bbce975a43503 (diff) | |
download | fetchmail-0e6209d16ed63bd59728ed54822180a57ae1face.tar.gz fetchmail-0e6209d16ed63bd59728ed54822180a57ae1face.tar.bz2 fetchmail-0e6209d16ed63bd59728ed54822180a57ae1face.zip |
FAQ cleanup.
svn path=/trunk/; revision=2279
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -720,8 +720,14 @@ int open_sink(struct query *ctl, struct msgblk *msg, send_bouncemail(msg, "Some addresses were rejected by the MDA fetchmail forwards to.\r\n", *bad_addresses, from_responses); - /* local notification only if bouncemail was insufficient */ - if (!(*good_addresses) && total_addresses > *bad_addresses) + /* + * It's tempting to do local notification only if bouncemail was + * insufficient -- that is, to add && total_addresses > *bad_addresses + * to the test here. The problem with this theory is that it would + * make initial diagnosis of a broken multidrop configuration very + * hard -- most single-recipient messages would just invisibly bounce. + */ + if (!(*good_addresses)) { #ifdef HAVE_SNPRINTF snprintf(addr, sizeof(addr)-1, "%s@%s", run.postmaster, ctl->destaddr); @@ -735,6 +741,9 @@ int open_sink(struct query *ctl, struct msgblk *msg, SMTP_rset(ctl->smtp_socket); /* required by RFC1870 */ return(PS_SMTP); } + + if (outlevel >= O_VERBOSE) + error(0, 0, _("no address matches; forwarding to %s."), run.postmaster); } /* |