Use argp_ functions instead of getopt to parse command
line arguments. This allows all mailutils programs to share common code and to have the same subset of command line options. Besides, this allows to have a single configuration file for entire package. The common command-line subsets are (struct argp_child): 1. mu_common_argp_child: handles --maildir,--log-facility, --license and --sql-.* family of options. (The latter are used to supply data for SQL getpwnam et al. functions instead of hard-coding them). 2. mu_daemon_argp_child: handles --daemon,--inetd,--port and --timeout options.
Showing
1 changed file
with
50 additions
and
0 deletions
-
Please register or sign in to post a comment