Mathieu Pagé Mathieu Pagé - 24 days ago 8
C# Question

How can I parse the winmail.dat file?

Simple question. I have a C# application that access an IMAP server using the AE.Net.Mail library to retrieve messages and attached files. Sometimes, when a message is sent from Outlook the attachments are contained in a file named winmail.dat. That is a file in the TNEF format.

Is there a library or any other way for my application to "unpack" theses files so I can get the attachments?

Answer

I've found this tool that can be controled from the command line to extract attacheemnts, from a TNEF file, but I would really prefer a library that would run "in process".