aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-16 16:54:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-16 16:54:21 +0000
commit0e6209d16ed63bd59728ed54822180a57ae1face (patch)
treefe7f0a847b833dd44835f43c5ae2df71c5ecfeb1 /sink.c
parentf50d39cc0c9f8487dde51788940bbce975a43503 (diff)
downloadfetchmail-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.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index 05b67016..7e90d0f6 100644
--- a/sink.c
+++ b/sink.c
@@ -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);
}
/*