From 207f1d7aa75ebf4cd695fc1bc735dc98c49cc5f5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 7 Feb 1999 21:06:13 +0000 Subject: Added bouncemail option. svn path=/trunk/; revision=2382 --- fetchmail.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 03af1481..cfbbb863 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -874,6 +874,8 @@ static int load_params(int argc, char **argv, int optind) struct passwd *pw; struct query def_opts, *ctl; + run.bouncemail = TRUE; + memset(&def_opts, '\0', sizeof(struct query)); def_opts.smtp_socket = -1; def_opts.smtpaddress = (char *)0; @@ -1161,6 +1163,8 @@ static int load_params(int argc, char **argv, int optind) run.use_syslog = (cmd_run.use_syslog == FLAG_TRUE); if (cmd_run.postmaster) run.postmaster = cmd_run.postmaster; + if (cmd_run.bouncemail) + run.bouncemail = cmd_run.bouncemail; /* check and daemon options are not compatible */ if (check_only && run.poll_interval) @@ -1351,6 +1355,11 @@ static void dump_params (struct runctl *runp, printf(_("Fetchmail will forward misaddressed multidrop messages to %s.\n"), runp->postmaster); + if (!runp->bouncemail) + printf(_("Fetchmail will direct error mail to the postmaster.\n")); + else if (outlevel >= O_VERBOSE) + printf(_("Fetchmail will direct error mail to the sender.\n")); + for (ctl = querylist; ctl; ctl = ctl->next) { if (!ctl->active || (implicit && ctl->server.skip)) -- cgit v1.2.3