diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-05-23 16:20:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-05-23 16:20:55 +0000 |
commit | af265f5294d56551304c0278712417b18a31d856 (patch) | |
tree | c1c5f25b0f446fc926e56449a3ff939705b2e938 /fetchmail.h | |
parent | 9f0a493bf046e732ccbeab9bd8e3dff506a2cbfd (diff) | |
download | fetchmail-af265f5294d56551304c0278712417b18a31d856.tar.gz fetchmail-af265f5294d56551304c0278712417b18a31d856.tar.bz2 fetchmail-af265f5294d56551304c0278712417b18a31d856.zip |
Global options have been consolidated into a single control block.
svn path=/trunk/; revision=1807
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/fetchmail.h b/fetchmail.h index f45d6741..0c74fec7 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -89,6 +89,15 @@ typedef char flag; #define FLAG_TRUE 2 #define FLAG_FALSE 1 +struct runctl +{ + char *logfile; + char *idfile; + int poll_interval; + flag use_syslog; + flag invisible; +}; + struct idlist { char *id; @@ -250,31 +259,23 @@ extern void envquery(int, char **); extern int outlevel; /* see the O_.* constants above */ extern int yydebug; /* enable parse debugging */ -/* daemon mode control */ -extern int poll_interval; /* poll interval in seconds */ -extern flag nodetach; /* if TRUE, don't detach daemon process */ -extern char *logfile; /* log file for daemon mode */ -extern flag errors_to_syslog; /* if syslog was set */ -extern flag use_invisible; /* if invisible was set */ -extern flag quitmode; /* if --quit was set */ -extern flag check_only; /* if --check was set */ -extern char *cmd_logfile; /* if --logfile was set */ -extern char *cmd_idfile; /* if --idfile was set */ -extern int cmd_daemon; /* if --daemon was set */ - /* these get computed */ extern int batchcount; /* count of messages sent in current batch */ extern flag peek_capable; /* can we read msgs without setting seen? */ /* miscellaneous global controls */ +extern struct runctl run; /* global controls for this run */ +extern flag nodetach; /* if TRUE, don't detach daemon process */ +extern flag quitmode; /* if --quit was set */ +extern flag check_only; /* if --check was set */ extern char *rcfile; /* path name of rc file */ -extern char *idfile; /* path name of UID file */ extern int linelimit; /* limit # lines retrieved per site */ extern flag versioninfo; /* emit only version info */ extern char *user; /* name of invoking user */ extern char *home; /* home directory of invoking user */ extern char *fetchmailhost; /* the name of the host running fetchmail */ extern int pass; /* number of re-polling pass */ +extern flag pythondump; /* dump control blocks as Python dictionary */ /* prototypes for globally callable functions */ @@ -368,7 +369,7 @@ int doETRN (struct query *); /* miscellanea */ struct query *hostalloc(struct query *); -int parsecmdline (int, char **, struct query *); +int parsecmdline (int, char **, struct runctl *, struct query *); void optmerge(struct query *, struct query *); char *MD5Digest (unsigned char *); int POP3_auth_rpa(unsigned char *, unsigned char *, int socket); |