Convert TNEF to TXT

Turn TNEF emails into TXT. The sender, recipients, date and subject, then the plain-text body, or the HTML body reduced to text when there is no plain one, then the names, types and sizes of attached files.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TNEF files on the dialor turn it to pick what to do

The message inside a winmail.dat file.The header, the body and a list of attachments, as plain text.

  1. What you get

    One TXT file that starts with the sender, recipients, date and subject. The body follows. If the message has a plain-text body, that is used. If it has only an HTML body, the HTML is reduced to text.

    After the body comes a list of the attached files, with the name, type and size of each one.

  2. What it leaves behind

    The attachments themselves are not copied into the text. Only their names, types and sizes are listed.

    The sender and recipients stay in the email that carried the file, so they appear only when Outlook also put them inside the TNEF file. If they are missing from the text, they were not in the file.

    HTML formatting is dropped, because plain text has no formatting.

TNEF and TXT.What each format is.

The formats

From · TNEF

TNEF

Outlook's winmail.dat attachment wrapper that hides the real attachments inside.

Extensions
.tnef
MIME type
application/vnd.ms-tnef
Kind
Email
To · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

In your code.The same TNEF to TXT conversion through the API, for your app or your agent.

terminal
$ cv convert report.tnef report.txt
$ cv convert report.tnef report.txt

Questions.What people ask about TNEF to TXT.

01OF 04

It is the winmail.dat attachment wrapper that Outlook uses. It hides the real attachments inside.

No. It lists each attachment by name, type and size. The files are not included.

They stay in the email that carried the file. They are in the text only when Outlook also put them inside the TNEF file.

The HTML body is reduced to text and used as the body. Its formatting is not kept.

More conversions.Other ways in and out of TNEF and TXT.