Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
489 stars 168 forks source link

InitializeFromCultureId ends in exception (MsgReader.Outlook.Storage.Message.get_MessageLocalId()) #410

Closed mhuellwegen closed 4 months ago

mhuellwegen commented 4 months ago

Dear Kees,

sometimes i got an exception when loading an Outlook Message caused by an invalid Culture. In my case i try a mail send to me with CultureID 4096 (0x1000).

This is my original traced exception:

_Error: Die Kultur wird nicht unterstützt. Parametername: culture 4096 (0x1000) ist ein ungültiger Kulturbezeichner. bei System.Globalization.CultureInfo.InitializeFromCultureId(Int32 culture, Boolean useUserOverride) bei MsgReader.Outlook.Storage.Message.getMessageLocalId() bei GetMessageLocalId(Object ) bei Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)

If you like i can send you an original mail (directly to you for privacy reasons) causing this problem for easy debugging.

Regards,

Martin

Sicos1977 commented 4 months ago

Hi Martin,

Please ZIP the file before sending it to sicos2002@hotrmail.com

Greetings, Kees

Sicos1977 commented 4 months ago

I probably will add a fallback scenario where it will just fall back to the culture on the system if the culture in the MSG file is invalid.

mhuellwegen commented 4 months ago

Hi Kees,

> I probably will add a fallback scenario That's fine for me.

Did you received my mail with the problematic zipped e-mail attached?

Sicos1977 commented 4 months ago

Yes, I did, try to look into it this weekend

Sicos1977 commented 4 months ago

Should be fixed