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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080213/24d39797/attachment-0002.bin>