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

Allow invalid separator value in SENT header #413

Closed bokdamgaard closed 1 week ago

bokdamgaard commented 2 months ago

Describe the bug If the time in SENT header uses . instead of : in time part of the value, the conversion fails, returning DateTime.Min to .Headers.SentDate

To Reproduce Call Rfc2822DateTime.StringToDate("Sun, 19 May 2024 15.59.09 +0200")

Expected behavior A DateTime object with value <> DateTime.Min

Desktop (please complete the following information):

Additional context It would propably require a replacement of . to : as DateTime parsing will fail with .

Sicos1977 commented 2 months ago

Do you have an example e-mail?

bokdamgaard commented 2 months ago

Not really, as it contains customer informations. I can give you the header: Date: Sun, 19 May 2024 15.59.09 +0200

Sicos1977 commented 1 week ago

Fixed