There seem to be a problem processing emails with codepage 50949. Several Api are not
working on several emails.
Here is an example:
Running the following code:
String filename = "/tmp/autodetect_korean_codepage.msg";
MapiMessage mapiMessage = MapiMessage.fromFile(filename);
System.out.println("This email has code page: "+mapiMessage.getProperties().get_Item(MapiPropertyTag.PR_INTERNET_CPID).getLong());
for (MapiRecipient mapiRecipient : mapiMessage.getRecipients()) {
System.out.println("This recipient display name is incorrect : "+mapiRecipient.getDisplayName());
}
On the following file:
I get the following output:
This email has code page: 50949
This recipient display name is incorrect : 8?훑?
This recipient display name is incorrect : t푭컈?
This recipient display name is incorrect : \濫??
The recipients display names are incorrect