diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-07-20 06:19:22 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-07-20 06:19:22 +0000 |
commit | a4c3040559e99af016af82c97a3b7598a7a19e5a (patch) | |
tree | 5fdf8080f9c3d5405a6765ae94b95e9a702692c8 /fetchmail.c | |
parent | 710de604fb09fdad36b04817c86e5dc9d09fdf95 (diff) | |
download | fetchmail-a4c3040559e99af016af82c97a3b7598a7a19e5a.tar.gz fetchmail-a4c3040559e99af016af82c97a3b7598a7a19e5a.tar.bz2 fetchmail-a4c3040559e99af016af82c97a3b7598a7a19e5a.zip |
Added postmaster option.
svn path=/trunk/; revision=1986
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index b91e4765..41a34567 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -987,6 +987,16 @@ static int load_params(int argc, char **argv, int optind) initialize_saved_lists(querylist, run.idfile); #endif /* POP3_ENABLE */ + /* + * If the user didn't set a last-resort user to get misaddressed + * multidrop mail, set an appropriate default here. + */ + if (!run.postmaster) + if (getuid()) /* ordinary user */ + run.postmaster = user; + else /* root */ + run.postmaster = "postmaster"; + return(implicitmode); } @@ -1146,6 +1156,9 @@ void dump_params (struct runctl *runp, struct query *querylist, flag implicit) #endif if (runp->invisible) printf("Fetchmail will masquerade and will not generate Received\n"); + if (runp->postmaster) + printf("Fetchmail will forward misaddressed multidrop messages to %s.", + runp->postmaster); for (ctl = querylist; ctl; ctl = ctl->next) { |