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-0004.bin>
Am 01.01.2012 um 10:31 schrieb Thomas Leuxner:> $ 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 $? > 0Can the exit codes be revisited before rolling the final 2.1? Still not very nice/useful for scripting. Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 203 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://dovecot.org/pipermail/dovecot/attachments/20120212/70579276/attachment-0004.bin>
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. http://hg.dovecot.org/dovecot-2.1/rev/0a5951b08478