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