From f5bb91dc606f920f143538c5de4635aa9cbb190a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 23 May 1998 18:15:36 +0000 Subject: Added configuration dumper. svn path=/trunk/; revision=1809 --- fetchmail.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 9b5aa112..368a02b2 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -67,7 +67,7 @@ char *user; /* the name of the invoking user */ char *home; /* invoking user's home directory */ char *fetchmailhost; /* the name of the host running fetchmail */ char *program_name; /* the name to prefix error messages with */ -flag pythondump; /* dump control blocks as Python dictionary */ +flag configdump; /* dump control blocks for configurator */ #if NET_SECURITY void *request = NULL; @@ -217,9 +217,9 @@ int main (int argc, char **argv) } /* dump options as a Python dictionary, for configurator use */ - if (pythondump) + if (configdump) { - /* this feature is not yet implemented */ + dump_config(&run, querylist); exit(0); } @@ -730,7 +730,9 @@ static int load_params(int argc, char **argv, int optind) ctl->active = TRUE; } - /* if there's a defaults record, merge it and lose it */ + /* + * If there's a defaults record, merge it and lose it. + */ if (querylist && strcmp(querylist->server.pollname, "defaults") == 0) { for (ctl = querylist->next; ctl; ctl = ctl->next) -- cgit v1.2.3