Commit ad56c3f6 ad56c3f6da3b32fa10be49f66e7b4d14811305f2 by Sergey Poznyakoff

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.
1 parent 4d32db88
Showing 1 changed file with 50 additions and 0 deletions
1 2002-02-05 Sergey Poznyakoff
2
3 Use argp_ functions instead of getopt to parse command
4 line arguments. This allows all mailutils programs
5 to share common code and to have the same subset
6 of command line options. Besides, this allows to have
7 a single configuration file for entire package.
8 The common command-line subsets are (struct argp_child):
9
10 1. mu_common_argp_child: handles --maildir,--log-facility,
11 --license and --sql-.* family of options. (The latter
12 are used to supply data for SQL getpwnam et al. functions
13 instead of hard-coding them).
14 2. mu_daemon_argp_child: handles --daemon,--inetd,--port
15 and --timeout options.
16
17 * lib/mu_argp.c: (new) Handle command line arguments,
18 common for all mailutils programs.
19 * lib/mu_argp.h: (new) Definitions for handling common
20 mailutils command-line arguments.
21 * lib/Makefile.am: Added mu_argp.[ch]
22
23 * comsat/Makefile.am: Added @ARGP.*@ substitutions
24 * imap4d/Makefile.am: Likewise.
25 * mail.local/Makefile.am: Likewise.
26 * pop3d/Makefile.am: Likewise.
27
28 * comsat/comsat.c: Use argp_parse instead of getopt_long.
29 * imap4d/imap4d.c: Likewise.
30 * mail.local/main.c: Likewise.
31 * pop3d/pop3d.c: Likewise.
32
33 * comsat/comsat.h: Added mu_argp.h and related stuff
34 * imap4d/imap4d.h: Likewise.
35 * imap4d/util.c: Likewise.
36 * mail.local/mail.local.h: Likewise.
37 * pop3d/extra.c: Likewise.
38 * pop3d/pop3d.h: Likewise.
39
40 * examples/mailutils.rc: (new) Sample mailutils configuration
41 file.
42 * doc/texinfo/programs.texi: Added entry about mailutils.rc
43 configuration file.
44
45 * MySql/MySql.c: Use configurable queries instead
46 of hardcoded ones.
47 * MySql/MySql.h: Added new external declarations.
48 Removed unneeded defines.
49 * configure.in: Removed notice about MySql.h
50
1 2002-02-04 Sergey Poznyakoff 51 2002-02-04 Sergey Poznyakoff
2 52
3 * mail.local/Makefile.am (mail_local_LDADD): Add @AUTHLIBS@. 53 * mail.local/Makefile.am (mail_local_LDADD): Add @AUTHLIBS@.
......