[Dovecot] convert-tool, exit code wrong?
Ingo Rogalsky
rog7993 at web.de
Tue Feb 12 19:19:48 EET 2008
Hello,
I use convert-tool regularly for converting mbox based mail accounts to
maildir based mail accounts. Today I tuned my convert script around
convert-tool. I'm irritated about the exit codes. It seems, they should
be inverted or am I wrong?
$ /opt/dovecot-1.0.10/bin/convert-tool rogtest1 /home/mail01/rogtest1 mbox:/home/rogtest1/mail maildir:/home/mail01/rogtest1/Maildir 1
Error: Source storage not found
$ echo $?
0
$ /opt/dovecot-1.0.10/bin/convert-tool rogtest1 /home/mail01/rogtest1 mbox:/home/rogtest1/mail maildir:/home/mail01/rogtest1/Maildir 1
Info: Successfully converted
$ echo $?
1
Ingo
More information about the dovecot
mailing list