Mathieu Pagé Mathieu Pagé - 1 year ago 199
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 Source

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".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download