Mboxutil -l Does Not Display Correctly Special Character Encoded Folder Names (Doc ID 2091736.1)

Last updated on DECEMBER 23, 2015

Applies to:

Oracle Communications Messaging Server - Version 7.0.0 and later
Information in this document applies to any platform.


Goal: To write a script to restore messages from filesystem backup (ZFS snapshot) (i.e. Enhancement Request Bug 12213004).  It must be able to handle all valid folder names, including special characters (Unicode encoding).

Current behavior encountered:
Output from mboxutil -l is not displaying as expected for special characters, for example, letters with umlaut.

1. Create a folder with an umlaut in the name - from a Mac OS X mail client.

Here is the mboxutil -l output, with -x, to show the encoded path name for the folder:


It looks like the folder name is simply "test with Umlaut" and that being a normal capital 'U'.

e.g. user/kellyc/test with Umlaut

and not

user/kellyc/test with Ümlaut

But looking at the encoded folder name, it is clearly more than just a capitalized U.

Here is the IMAP LIST response:

* LIST (\HasNoChildren) "/" "test with U&Awg-mlaut"

Here is mboxutil -l | od showing it is a multibyte character:

$ mboxutil -lp 'user/kellyc/test with U*' | head -3 | tail -1 | od -c
0000000 5 7 4 4 2
0000020 0 1 5 / 1 2 / 1 7 0 9 : 5 9
0000040 m s h o s t
0000060 - u s e r / k e l l y
0000100 c / t e s t w i t h U 032 m l
0000120 a u t \n

(see "U 032 m" not "U m")

The problem is that mboxutil -l seems to be displaying a normal U, but pipe to the od command shows that is not what is happening.



mailhost:/gcs/app/mail/imsadmin$ echo $TERM
mailhost:/gcs/app/mail/imsadmin$ locale


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms