From fde28f60a7cc6f1cac487b0365e2a2be1fb59f49 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Mar 1997 09:37:46 +0000 Subject: Added `set daemon'. svn path=/trunk/; revision=930 --- fetchmail.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'fetchmail.c') 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); -- cgit v1.2.3