How to open winmail.dat files on Ubuntu and Debian Linux

The winmail.dat file is a container file format used by Microsoft Outlook to send attachments in rich-text formatted emails. To open winmail.dat on Linux, use the tnef utility.

Installation

sudo apt-get install tnef

Usage

Open a shell window, navigate to the directory where the winmail.dat file is saved,  then execute the command:

tnef winmail.dat

to extract all files that are stored in the winmail.dat into the current directory.

25 thoughts on “How to open winmail.dat files on Ubuntu and Debian Linux”

  1. Avatar

    Thanks so much for the help. Worked Great

    Reply
  2. Avatar

    Thnks man!
    It works perfect

    Reply
  3. Avatar

    Thanks, it saved my day!

    Reply
  4. Avatar

    Thank you this was very useful

    Reply
  5. Avatar

    Thank you. It works.

    Reply
  6. Avatar

    Thanks a lot, it worked well!

    Reply
  7. Avatar

    Thank You. 🙂 It was quick and easy. (A bit off but.. Happy holidays … ) 🙂

    Reply
  8. Bingo Bango Bongo, worked like a charm. Damn Microsoft!

    Reply
  9. Avatar

    Thanks for the easy and working command

    Reply
  10. Avatar

    Excellent, thanks. Just what I needed.

    Reply
  11. Avatar

    This works perfect! thanks.

    Reply
  12. Avatar

    Ditto. I am always getting email from people and I plead to stop sending me .dat and .pub files. They keep doing it so thanks for solving that. Now all I need is a .pub converter……..sigh

    Reply
  13. Avatar

    Thanks to the author of this very useful piece of software.
    Installed and used 😉 Perfect !

    Greetings

    Hellmut

    Reply
  14. Avatar

    Nice tool, helped me a lot for reading pdf files.

    Reply
  15. Avatar

    Thank you very much!! Community is the Power, but with people like you, only.

    Reply
  16. Avatar

    i have a problem; after command line, ask me “[sudo] password for francesco:” , but i can’t succeed to write my pw. Why?

    Reply
  17. Francesco that is a password that you or who ever installed your linux version of your OS should know. When you type it appears that nothing is being typed, that just how it seems.

    Reply
  18. Avatar

    Thanks, really useful!

    Reply
  19. Avatar

    So easy! Thanks for the help.

    Reply
  20. Avatar

    There is also a Ubuntu package called claws-mail-tnef-parser that is a plugin to the Claws mail program and allows seamless attachment handling- you don’t even know there’s a winmail.dat file. May be plugins for other mail programs too.

    Reply
  21. Avatar

    Great, and so fast solved :-).

    Reply
  22. Avatar

    Brilliant! Wish I had found this sooner!

    Reply
  23. Avatar

    it works fine. Thanks

    Reply
  24. Avatar

    This is a great little program, saved me hours of angst!!

    Reply
  25. Avatar

    Just what I needed. (Damn Microsoft!)

    Reply

Leave a Comment

*