Oh, that's an interesting thought. Makes a lot of sense except that it
leaves a layer of cruft in that the dbmail-adduser wrapper would have to
still use the awful command line syntax now in place :-\
dbmail-user could be one of those binaries that has different default
behaviour depending upon argv[0], which is the progam name as called. Call
it dbmail-user and it has no default mode. Call it dbmail-adduser and it
wants to know who to add. Call it dbmail-deluser and it wants to know who to
delete. Like gzip/gunzip, though, a command line flag could use any of them
for any function, however.
Aaron
""Ed K."" <[EMAIL PROTECTED]> said:
> Well, I would like to see a new command 'dbmail-user' where an
administrator can
> add, delete, or modify the attributes (quota/aliases) of a user.
>
> Then write a wrapper called 'dbmail-adduser' that operates the same as the
current
> 'dbmail-adduser' but calls the new 'dbmail-user' to do the work.
>
> But yes, this is a v2.1 operation since the functionallity of
'dbmail-adduser' would
> not change.
>
> ed
>
> On Thu, 11 Mar 2004, Ilja Booij wrote:
>
> > My preference is that we do this for 2.1. We still need to do some more
> > bugixing in 2.0 (the Mozilla behaviour for instance) and some
> > optimizations (see if we have queries that can be optimized or done away
> > with)
> >
> > Changing dbmail-adduser will probably not break to much. Can't we
> > program it to accept the same syntax as now, plus all the sane features
> > it should have?
> >
> > Ilja
> >
> > Aaron Stone wrote:
> >
> > > Hey,
> > >
> > > So I was looking at dbmail-adduser today, trying to remember how to
use the
> > > crazy thing... and I'd like to scrap the current command line
interface and
> > > replace it with something clean and GNU-ish, using getopt, and without
crazy
> > > position dependent overloaded single characters.
> > >
> > > Since I'm sure a lot of people might already have scripts to control
> > > dbmail-adduser, would you prefer if I rewrote the command line in time
for
> > > 2.0, or would you not mind if it changed dramatically between 2.0 and
2.1?
> > >
> > > Aaron
> > >
> > > _______________________________________________
> > > Dbmail-dev mailing list
> > > [email protected]
> > > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> > _______________________________________________
> > Dbmail-dev mailing list
> > [email protected]
> > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> >
>
> Security on the internet is impossible without strong, open,
> and unhindered encryption.
>
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>
--