I'm pulling emails with attachments off a server and placing them in folders based on certain criteria. This is no problem for emails that were sent with plain text encoding, but as we all know if they were sent with rich text then the attachments get converted to the winmail.dat format.
I've tried using a module called tnefparse, but haven't had any luck since I couldn't find any documentation or examples online.
Can anyone provide some examples on how to read in and convert the winmail.dat attachment, using tnefparse or any other Python module?