[Dovecot] Some Doveadm Tools lack proper exit codes
Thomas Leuxner
tlx at leuxner.net
Sun Jan 1 11:31:22 EET 2012
Happy New Year Everyone,
and *yes* it's that time of the year to archive old stuff again. Please implement proper error codes to support this (scripting) endeavor.
=> Good
$ doveadm user foo
userdb lookup: user foo doesn't exist
$ echo $?
2
=> Bad
$ doveadm acl get -u tlx at leuxner.net FOO
doveadm(tlx at leuxner.net): Error: Can't open mailbox FOO: Mailbox doesn't exist: FOO
ID Global Rights
$ echo $?
0
$ doveconf -n | head
# 2.1.rc1 (056934abd2ef): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.3
Thanks
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120101/2046a574/attachment-0002.bin>
More information about the dovecot
mailing list