[Dovecot] convert-tool, exit code wrong?
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
On Tue, 12 Feb 2008, Ingo Rogalsky wrote:
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?
Yes. They're inverted. In program return codes, 0 = true/no-error, anything else = false/error.
Best, Ben
On Tue, 2008-02-12 at 18:19 +0100, Ingo Rogalsky wrote:
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?
Thanks, fixed: http://hg.dovecot.org/dovecot-1.0/rev/f829403b6b9c
participants (3)
-
Benjamin R. Haskell
-
Ingo Rogalsky
-
Timo Sirainen