[Dovecot] Some Doveadm Tools lack proper exit codes
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@leuxner.net FOO doveadm(tlx@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
Am 01.01.2012 um 10:31 schrieb Thomas Leuxner:
$ doveadm acl get -u tlx@leuxner.net FOO doveadm(tlx@leuxner.net): Error: Can't open mailbox FOO: Mailbox doesn't exist: FOO ID Global Rights $ echo $? 0
Can the exit codes be revisited before rolling the final 2.1? Still not very nice/useful for scripting.
Regards Thomas
On 12.2.2012, at 9.02, Thomas Leuxner wrote:
Can the exit codes be revisited before rolling the final 2.1? Still not very nice/useful for scripting.
Well, okay, it became a bit large change but I guess it's better now than waiting for v2.2 or breaking someone's script by changing it during v2.1.x releases.
On Sun, Feb 12, 2012 at 09:11:44PM +0200, Timo Sirainen wrote:
Well, okay, it became a bit large change but I guess it's better now than waiting for v2.2 or breaking someone's script by changing it during v2.1.x releases.
Thanks.
participants (2)
-
Thomas Leuxner
-
Timo Sirainen