diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-12-01 05:51:30 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-12-01 05:51:30 +0000 |
commit | 763db6c239904dcec27afd088e15640e99fa84cf (patch) | |
tree | 447371a5f409472ada66bef0ee5561f71729d7e6 | |
parent | 0624314eb7caf1dec01ccfaf0ec78ebe7ee7e492 (diff) | |
download | fetchmail-763db6c239904dcec27afd088e15640e99fa84cf.tar.gz fetchmail-763db6c239904dcec27afd088e15640e99fa84cf.tar.bz2 fetchmail-763db6c239904dcec27afd088e15640e99fa84cf.zip |
Sent to Gunther Leber.
svn path=/trunk/; revision=1549
-rw-r--r-- | fetchmail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index d737e07e..493cb247 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -584,7 +584,6 @@ static int load_params(int argc, char **argv, int optind) def_opts.server.protocol = P_AUTO; def_opts.server.timeout = CLIENT_TIMEOUT; def_opts.remotename = user; - save_str(&def_opts.smtphunt, FALSE, fetchmailhost); def_opts.expunge = 1; def_opts.server.envskip = 0; @@ -638,6 +637,10 @@ static int load_params(int argc, char **argv, int optind) /* merge in defaults */ optmerge(ctl, &def_opts); + /* make sure we have a nonempty host list to forward to */ + if (!ctl->smtphunt) + save_str(&ctl->smtphunt, FALSE, fetchmailhost); + /* keep lusers from shooting themselves in the foot :-) */ if (poll_interval && ctl->limit) { |