It's really easy to have main() return 0 or 1 on error... but more
important than returning an error code is returning a *meaningful* error
code. Perhaps we could assemble a list of errors and set up a header file
with some defines (and errors texts!) so that scripts such as yours can be
used even
I use dbmail-adduser and dbmail-maintenance in bash scripts via the
webmin interface.
I get this way a easy to use web administration tool for dbmail.
If dbmail-adduser and dbmail-maintenance could return a execution code
(errorlevel).
I could use the bash "if command" to check if dbmail-a