[Dovecot] 'Doveadm user' could use better error codes

Thomas Leuxner tlx at leuxner.net
Tue Dec 28 16:33:38 EET 2010


Am 28.12.2010 um 15:23 schrieb dovecot:

> It behaves just as 'man doveadm' promisses.....
> 
> EXIT STATUS
>       doveadm will exit with one of the following values:
> 
>       0   Selected command was executed successful.
> 
> >0  Command failed in some way.
> 
> So, this seems to be correct!

When a user is not found it should throw an error, and not act innocent - exiting with '0' :)

>> $ id foo
>> id: foo: No such user
>> $ echo $?
>> 1


More information about the dovecot mailing list