aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-22 18:42:39 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-22 18:42:39 +0000
commit703f7886706bd5a7fc34db647edb3fbea5553c0a (patch)
treec66d018293eacfff8a838934e9e28478ac4d8ab3 /fetchmail.c
parent0a337ef438e4c5902171516e76666869a87747c6 (diff)
downloadfetchmail-703f7886706bd5a7fc34db647edb3fbea5553c0a.tar.gz
fetchmail-703f7886706bd5a7fc34db647edb3fbea5553c0a.tar.bz2
fetchmail-703f7886706bd5a7fc34db647edb3fbea5553c0a.zip
Added idfile.
svn path=/trunk/; revision=1794
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 63d4cdc8..2da20e4c 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -62,6 +62,7 @@ flag nodetach; /* if TRUE, don't detach daemon process */
flag quitmode; /* if --quit was set */
flag check_only; /* if --probe was set */
char *cmd_logfile; /* if --logfile was set */
+char *cmd_idfile; /* if --idfile was set */
int cmd_daemon; /* if --daemon was set */
/* miscellaneous global controls */
@@ -838,6 +839,10 @@ static int load_params(int argc, char **argv, int optind)
if (cmd_logfile)
logfile = cmd_logfile;
+ /* if cmd_idfile was explicitly set, use it to override idfile */
+ if (cmd_idfile)
+ logfile = cmd_idfile;
+
/* likewise for poll_interval */
if (cmd_daemon >= 0)
poll_interval = cmd_daemon;