This is just a review of how I think the options should be like for dbmail-sievecmd.

For consistency with the dbmail-users script:

-u [user] username, although -u is used differently in dbmail-users I don't think it interferes.
-a [scriptname] Add script
-d [scriptname] Delete script
-c [scriptname] Change script (to activate and deactivate or replace with new script.)
-f [filename]           Input filename, if none use stdin. (used with -a or -c)
-e                              enable (with -c)
-E                      disable (with -c)
-l                              list scripts
-o                              output script contents
-m open script in favourit editor, to be saved to database after editing. (new feature ;)

Best regards,

Marc Dirix

Op 19-aug-2006, om 19:52 heeft Aaron Stone het volgende geschreven:

I pondered for a while over the sievecmd options, and wasn't happy, but
needed to get something working. If you have suggestions for better
options, I'm all ears!

Aaron

On Sat, 2006-08-19 at 13:53 +0200, Marc Dirix wrote:
Hi,


Just a thought...
The dbmail-users and dbmail-sievecmd script have mixed options.
While in dbmail-users the "-d" options means "remove user"
and in dbmail-util it sort of mean "delete message".
However in dbmail-sievecmd it means "deactivate script" instead of "remove
script". Because it uses "-r" for that purpose.

This also applies for -a (adduser and activate).

Wouldn't it be more usefull to keep options similar between al tools?

Kind regards,

Marc
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev



Reply via email to