Mailing List Archive

Arguments to maintenance, adduser
Hey,

So after looking into the getopt() code for dbmail-smtp, and rearranging a
little bit to make room for "-f config file" as in some of the other main
routines, it occurs to me that a little standardization can go a long way...

dbmail-maintenance takes a "-f" for "fix". I'd like to change that to be "-r"
for "repair" and add the argument "-f config file".

Similarly, dbmail-adduser does not have a config file argument, and frankly,
I'm scared of the current command line parser, so I'd really like to do the
getopt() rewrite as soon as possible, to add "-f" (and maybe a little sanity,
too ;-)

Anybody else that's missing? I can't think of any other arguments that are as
fundamentally across the board as the alternate config file... suggestions?

Aaron
Re: Arguments to maintenance, adduser [ In reply to ]
> Similarly, dbmail-adduser does not have a config file argument, and
> frankly, I'm scared of the current command line parser, so I'd really
> like to do the getopt() rewrite as soon as possible, to add "-f" (and
> maybe a little sanity, too ;-)
>
> Anybody else that's missing? I can't think of any other arguments that
> are as fundamentally across the board as the alternate config file...
> suggestions?

Only semi related, but I think it would make sense to be able to specify
an alternate config file based on an enviornment variable. I would think
that and env variable overrides the default, but a command line arg
overrides both. That is fairly standard practice.

Matthew