diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-14 23:05:14 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-14 23:05:14 +0000 |
commit | 85fb62a2d079db0146238b8c5b5527cb5a57e97a (patch) | |
tree | d8ccdf0a434925631e76528fe7c7f79beea4b982 /fetchmail.c | |
parent | 88ff43ea2f1e2a787c8f9c0285634e7583f5a3ff (diff) | |
download | fetchmail-85fb62a2d079db0146238b8c5b5527cb5a57e97a.tar.gz fetchmail-85fb62a2d079db0146238b8c5b5527cb5a57e97a.tar.bz2 fetchmail-85fb62a2d079db0146238b8c5b5527cb5a57e97a.zip |
Make -d0 work when keepall and fetch are on.
svn path=/trunk/; revision=2748
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/fetchmail.c b/fetchmail.c index bac4a68d..c902976b 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1038,6 +1038,27 @@ static int load_params(int argc, char **argv, int optind) /* use localhost if we never fetch the FQDN of this host */ fetchmailhost = "localhost"; + /* here's where we override globals */ + if (cmd_run.logfile) + run.logfile = cmd_run.logfile; + if (cmd_run.idfile) + run.idfile = cmd_run.idfile; + /* do this before the keep/fetchall test below, otherwise -d0 may fail */ + if (cmd_run.poll_interval >= 0) + run.poll_interval = cmd_run.poll_interval; + if (cmd_run.invisible) + run.invisible = cmd_run.invisible; + if (cmd_run.use_syslog) + 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) + run.poll_interval = 0; + /* merge in wired defaults, do sanity checks and prepare internal fields */ for (ctl = querylist; ctl; ctl = ctl->next) { @@ -1259,26 +1280,6 @@ static int load_params(int argc, char **argv, int optind) } } - /* here's where we override globals */ - if (cmd_run.logfile) - run.logfile = cmd_run.logfile; - if (cmd_run.idfile) - run.idfile = cmd_run.idfile; - if (cmd_run.poll_interval >= 0) - run.poll_interval = cmd_run.poll_interval; - if (cmd_run.invisible) - run.invisible = cmd_run.invisible; - if (cmd_run.use_syslog) - 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) - run.poll_interval = 0; - #ifdef POP3_ENABLE /* initialize UID handling */ if (!versioninfo && (st = prc_filecheck(run.idfile, !versioninfo)) != 0) |