diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-02-07 21:06:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-02-07 21:06:13 +0000 |
commit | 207f1d7aa75ebf4cd695fc1bc735dc98c49cc5f5 (patch) | |
tree | 23b00b775bf6fd70d6b43a8429910f0969a5e738 /fetchmail.c | |
parent | 683373ce143e698b1455452f83341f75e0f31135 (diff) | |
download | fetchmail-207f1d7aa75ebf4cd695fc1bc735dc98c49cc5f5.tar.gz fetchmail-207f1d7aa75ebf4cd695fc1bc735dc98c49cc5f5.tar.bz2 fetchmail-207f1d7aa75ebf4cd695fc1bc735dc98c49cc5f5.zip |
Added bouncemail option.
svn path=/trunk/; revision=2382
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
1 files changed, 9 insertions, 0 deletions
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)) |