[Dovecot] doveadm mailbox: rc=0 on error
Hi all,
I use "doveadm mailbox mutf7 -7 $folder" to convert imap foldernames to UTF-8. If $foldername is not mUTF-7 encoded, doveadm returns "doveadm(root): Error: Mailbox name not valid mUTF-7: $folder" This errormessage is printed on stderr but the returncode of doveadm is zero. I tested with dovecot-2.0.* and dovecot-2.1.*
# all right: $ doveadm mailbox mutf7 -7 'gr&APw-n'; echo $? grün 0
# also all right, no mUTF-7 encoded folder: $ doveadm mailbox mutf7 -7 'gruen'; echo $? gruen 0
# wrong $ doveadm mailbox mutf7 -7 'grün'; echo $? doveadm(root): Error: Mailbox name not valid mUTF-7: grün
0
Would be nice if doveadm exit with an errorcode != 0 in that case.
Andreas
-- Andreas Schulze Internetdienste | P252
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
On 4.5.2012, at 12.43, Andreas Schulze wrote:
I use "doveadm mailbox mutf7 -7 $folder" to convert imap foldernames to UTF-8. If $foldername is not mUTF-7 encoded, doveadm returns "doveadm(root): Error: Mailbox name not valid mUTF-7: $folder" This errormessage is printed on stderr but the returncode of doveadm is zero.
participants (2)
-
Andreas Schulze
-
Timo Sirainen