Aaron Stone wrote:

It's going to take another afternoon to work through the options code for
dbmail-users, but I finished mapping out the command line...

*** dbmail-users ***
Use this program to manage your DBMail users.
See the man page for more info. Modes of operation:

    -a user   add a user
    -d user   delete a user
    -e user   empty mailboxes for a user
    -c user   change details for a user
    -l uspec  list information for matching users
    -x alias  create an anonymous recipient alias (for external forwards)

Summary of options for all modes:
    -n        show the intended action but do not perform it
    -w passwd specify user's password on the command line
    -W [file] read from a file or prompt for a user's password
    -p pwtype password type may be one of the following:
              cleartext, crypt, md5-hash, md5-digest
    -P [file] pull encrypted password from the shadow file
    -i cid    assign the user to a client
    -q quota  set the mail quota size in <bytes>B,
              <kbytes>K, or <mbytes>M, default in bytes
    -s alia.. add a list of recipient aliases
    -S alia.. remove a list of recipient aliases
    -t fwds.. add a list of deliver-to forwards
    -T fwds.. remove a list of deliver-to forwards
    -f file   specify an alternative config file
    -v        show the version
    -h        show this help message


Thoughts, comments, questions?

perhaps -W should be default?

If so, it should give feedback on what ir's going to do: For which user is the password, and what kind of encryption is it going to use for the password.

perhaps an 'interactive' option would be nice, just like 'rm -i', which asks gives feedback on the action:

About to remove user foo
Is this correct? [y/N]:

Using -i for this option would be best I guess (I see it's already taken in your scheme)

Ilja


--
Ilja Booij
IC&S B.V.

Stadhouderslaan 57
3583 JD  Utrecht
www.ic-s.nl

T algemeen: 030 6355730
T direct: 030 6355739
F: 030 6355731
E: [EMAIL PROTECTED]

Reply via email to