aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-23 18:15:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-23 18:15:36 +0000
commitf5bb91dc606f920f143538c5de4635aa9cbb190a (patch)
tree8b740edb010b43c910d25231ff080c37c8b1b10e /fetchmail.c
parent5d909520548ad3b175fa568554affcca96f294e1 (diff)
downloadfetchmail-f5bb91dc606f920f143538c5de4635aa9cbb190a.tar.gz
fetchmail-f5bb91dc606f920f143538c5de4635aa9cbb190a.tar.bz2
fetchmail-f5bb91dc606f920f143538c5de4635aa9cbb190a.zip
Added configuration dumper.
svn path=/trunk/; revision=1809
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c10
1 files changed, 6 insertions, 4 deletions
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)