tnef: Transport Neutral Encapsulation Format
I’m planning on removing the pain that is TNEF from my life completely as soon as I can. I have to deal with this nonsense at work (only the developers and half of the network engineers use something other than Outlook).
I would like to have a single piece of code with no dependencies that can take an email and convert any TNEF attachments to proper MIME attachments that mail agents for grown-ups can understand. Nothing quite like that exists as yet, but some things come close:
- tnef: A command-line utility that takes a
winmail.datfile and decodes it. It doesn’t know MIME, unfortunately.
- tnefparse: A fork of pytnef. It requires Python 2.7, unfortunately. I need to get this beast running on Python 2.5.
- This page gives details of how to solve the problem pretty easily on anything after Debian Sarge (which is pretty ancient at this point). It requires a wee bit of grovelling on my part to the BOFHs at work though.
- Also, there is this.