diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-03-13 09:37:46 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-03-13 09:37:46 +0000 |
commit | fde28f60a7cc6f1cac487b0365e2a2be1fb59f49 (patch) | |
tree | 691cea2ead6a4d5319d5fd0af2a5d156e3edb474 /fetchmail.c | |
parent | 87ad588dd2a76dde9de03681f4c4ec63d789abe2 (diff) | |
download | fetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.tar.gz fetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.tar.bz2 fetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.zip |
Added `set daemon'.
svn path=/trunk/; revision=930
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index 859e438e..c01d255e 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -59,6 +59,7 @@ int use_syslog; /* if --syslog was set */ int quitmode; /* if --quit was set */ int check_only; /* if --probe was set */ char *cmd_logfile; /* if --logfile was set */ +int cmd_daemon; /* if --daemon was set */ /* miscellaneous global controls */ char *rcfile; /* path name of rc file */ @@ -665,6 +666,10 @@ static int load_params(int argc, char **argv, int optind) if (cmd_logfile) logfile = cmd_logfile; + /* likewise for poll_interval */ + if (cmd_daemon >= 0) + poll_interval = cmd_daemon; + return(implicitmode); } @@ -767,6 +772,11 @@ void dump_params (struct query *ctl) { printf("Options for retrieving from %s@%s:\n", ctl->remotename, visbuf(ctl->server.names->id)); + + if (logfile) + printf(" Logfile is %s\n", logfile); + if (poll_interval) + printf(" Poll interval is %d seconds\n", poll_interval); #ifdef HAVE_GETHOSTBYNAME if (ctl->server.canonical_name) printf(" Canonical DNS name of server is %s.\n", ctl->server.canonical_name); |