Transport Neutral Encapsulation Format or TNEF is a proprietary
email
Electronic mail (usually shortened to email; alternatively hyphenated e-mail) is a method of transmitting and receiving Digital media, digital messages using electronics, electronic devices over a computer network. It was conceived in the ...
attachment format used by
Microsoft Outlook
Microsoft Outlook is a personal information manager software system from Microsoft, available as a part of the Microsoft 365 software suites. Primarily popular as an email client for businesses, Outlook also includes functions such as Calendari ...
and
Microsoft Exchange Server
Microsoft Exchange Server is a mail server and calendaring server developed by Microsoft. It runs exclusively on Windows Server operating systems.
The first version was called Exchange Server 4.0, to position it as the successor to the relat ...
. An attached
file with TNEF encoding is most often named ''winmail.dat'' or ''win.dat'', and has a MIME type of ''Application/MS-TNEF''.
The official (
IANA
The Internet Assigned Numbers Authority (IANA) is a standards organization that oversees global IP address allocation, autonomous system number allocation, root zone management in the Domain Name System (DNS), media types, and other Internet P ...
) media type, however, is ''application/vnd.ms-tnef''.
Overview
Some TNEF files contain information used only by Outlook to generate a richly formatted view of the message, such as embedded (
OLE
OLE, Ole or Olé may refer to:
* Olé, a cheering expression used in Spain
* Ole (name), a male given name, includes a list of people named Ole
* Overhead lines equipment, used to transmit electrical energy to trams, trolleybuses or trains
Co ...
) documents or Outlook-specific features such as forms, voting buttons, and meeting requests. Other TNEF files may contain files which have been attached to an e-mail message.
Within the Outlook
e-mail client
An email client, email reader or, more formally, message user agent (MUA) or mail user agent is a computer program used to access and manage a user's email.
A web app, web application which provides message management, composition, and receptio ...
, TNEF encoding cannot be explicitly enabled or disabled (except via a registry setting
). Selecting
RTF as the format for sending an e-mail implicitly enables TNEF encoding, using it instead of the more common and widely compatible
MIME
A mime artist, or simply mime (from Greek language, Greek , , "imitator, actor"), is a person who uses ''mime'' (also called ''pantomime'' outside of Britain), the acting out of a story through body motions without the use of speech, as a the ...
standard. When sending
plain text
In computing, plain text is a loose term for data (e.g. file contents) that represent only characters of readable material but not its graphical representation nor other objects ( floating-point numbers, images, etc.). It may also include a lim ...
or
HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
format messages, some versions of Outlook (apparently including Outlook 2000
) prefer MIME, but may still use TNEF under some circumstances (for example, if an Outlook feature requires it).
TNEF attachments can contain security-
sensitive information such as user login name and file paths,
from which access controls could possibly be inferred.
Exchange Server
Native-mode Microsoft Exchange 2000 organizations will, in some circumstances, send entire messages as TNEF-encoded raw binary independent of what is advertised by the receiving
SMTP
The Simple Mail Transfer Protocol (SMTP) is an Internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages. User-level email clients typi ...
server. As documented in Microsoft KBA #323483, this technique is not
RFC-compliant because these messages have the following characteristics:
* They may include non-ASCII characters outside the 0–127 US-ASCII range.
* The lines in these messages are often too long for transport via SMTP.
* They do not follow the CRLF.CRLF message termination semantics as specified in RFC 821.
Internal communications between Exchange Servers (2000 and later) over SMTP encode the message in S/TNEF (Summary TNEF) format. The conversion between the format needed by the end client on the Internet is performed on the last Hub Transport server before final delivery, and when the Hub Transport role of an Exchange Server is about to deliver the message to a mailbox role server, the message is converted to
MAPI
Messaging Application Programming Interface (MAPI) is an Application programming interface, API for Microsoft Windows which allows programs to become email-aware. While MAPI is designed to be independent of the protocol, it is usually used to com ...
format for storage.
S/TNEF differs from TNEF in that it is 8-bit (not 7-bit for TNEF) and does not contain a plain-text portion.
Decoding
Programs to decode and extract files from TNEF-encoded attachments are available on many platforms.
Multiplatform
*
Geary (email client)
Geary is a free and open-source email client written in Vala and based on WebKitGTK. Although since adopted by the GNOME project, it originally was developed by the Yorba Foundation. The purpose of this e-mail client, according to Adam Dingle, Y ...
supports TNEF since version 3.33.1
* TNEF Parse –
Claws Mail
Claws Mail is a free and open-source, C_(programming_language), C/GTK-based e-mail client, which is both lightweight and highly configurable. Claws Mail runs on both Microsoft Windows, Windows and Unix-like systems such as Linux, BSD, and Solaris ...
plugin
* LookOut or its successor LookOut (fix version) –
Mozilla Thunderbird
Mozilla Thunderbird is a free and open-source email client that also functions as a personal information manager with a Digital calendar, calendar and contactbook, as well as an RSS feed reader, chat client (IRC/XMPP/Matrix (protocol), Matrix), ...
extension. See also:
** LookOut project page at MozDev.org
** Bug 77811 – Inline viewer for Microsoft proprietary mail formats, a 21-plus-year-old bug report at the Mozilla
Bugzilla
Bugzilla is a web-based general-purpose bug tracking system and testing tool originally developed and used by the Mozilla project, and licensed under the Mozilla Public License.
Released as open-source software by Netscape Communications in 19 ...
*
Wireshark
Wireshark is a Free and open-source software, free and open-source packet analyzer. It is used for computer network, network troubleshooting, analysis, software and communications protocol development, and education. Originally named Ethereal, ...
– Version 1.2 and later can open and dissect winmail.dat files, although it is not useful as a mail reader
* KTNEF – LGPL TNEF extractor by
KDE
KDE is an international free software community that develops free and open-source software. As a central development hub, it provides tools and resources that enable collaborative work on its projects. Its products include the KDE Plasma gra ...
Unix-like or POSIX command-line
* yTNEF –
GPL TNEF extractor from the
POSIX
The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
command-line, designed specifically for reading winmail.dat
* TNEF – GPL TNEF extractor from the POSIX command-line
Mac
* Klammer – Shareware for
Mac OS X
macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
, available on App store; also supports MSG files
* MailRaider Pro - Application for Mac OS X, available on App store; also supports MSG files
* Winmail Viewer – Shareware Winmail.dat viewer for Mac OS X 10.6 or later, available on App Store, support open
Microsoft Outlook
Microsoft Outlook is a personal information manager software system from Microsoft, available as a part of the Microsoft 365 software suites. Primarily popular as an email client for businesses, Outlook also includes functions such as Calendari ...
(1997, 2000, 2003, 2007, 2010). Winmail.dat files, can extract and save Winmail.dat attachments
* TNEF's Enough – Freeware decoder for
Mac OS 9
Mac OS 9 is the ninth and final major release of the classic Mac OS operating system for Macintosh computers, made by Apple Computer. Introduced on October 23, 1999, it was promoted by Apple as "The Best Internet Operating System Ever", highlight ...
and Mac OS X
* tnefDD – Free GPL decoder with drag-and-drop functionality for Mac OS X
* TNEF –
MacPorts
MacPorts, formerly DarwinPorts, is a package manager for macOS and Darwin. It is an open-source software project that aims to simplify the installation of other open source software. It is similar in function to Fink and the BSD ports collection ...
version of the TNEF command-line decoder Mac OS X
* Letter Opener (''previously known as OMiC'') – Shareware, plugin for
Apple Mail
Mail, also known as Apple Mail, is an email client included by Apple Inc. with its operating systems macOS, iOS, iPadOS, watchOS, and visionOS. Mail grew out of NeXTMail, which was originally developed by NeXT as part of its NeXTSTEP operating ...
iPhone and iPad
* Winmail File Viewer – Paid universal app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
to open winmail.dat attachments with option to save and share extracted files
* WinMail.dat Viewer - Browse Outlook winmail.dat files – Paid universal app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
to open winmail.dat attachments with option to view, save and share extracted files
* Winmail File Viewer+ – Paid universal app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
to open winmail.dat attachments with option to save and share extracted files
* Klammer - open EML, MSG and Winmail.dat files – Paid universal app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
with in-app purchase to provide functionality
* WinDat Opener – Paid app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
* Letter Opener – Free Universal app for the
iPhone
The iPhone is a line of smartphones developed and marketed by Apple that run iOS, the company's own mobile operating system. The first-generation iPhone was announced by then–Apple CEO and co-founder Steve Jobs on January 9, 2007, at ...
,
iPod Touch
The iPod Touch (stylized as iPod touch) is a discontinued line of iOS-based mobile devices designed and formerly marketed by Apple Inc. with a touchscreen-controlled user interface. As with other iPod models, the iPod Touch can be used as a po ...
and
iPad
The iPad is a brand of tablet computers developed and marketed by Apple Inc., Apple that run the company's mobile operating systems iOS and later iPadOS. The IPad (1st generation), first-generation iPad was introduced on January 27, 2010. ...
with in-app purchase to provide functionality
* TNEF's Enough - Free Universal app for iPhone, iPod Touch, and iPad
Microsoft Windows
* Winmail.dat Reader – Freeware easy-to-use decoder
* Winmail Opener – Freeware decoder
* tnef2win – Freeware decoder
* Free File Viewer – Freeware decoder
* fentun – Freeware decoder
* Winmail.dat Viewer – modern Windows 8 app (non-free)
Android
* TNEF Extractor – A free and open source (GPLv3) Android app
* Opener – A free Android app
* Reader - Free Android app also available
Online
* winmail.dat extractor and document converter – Free, in modern, responsive theme
* Reader Online – The online version of the Winmail.dat Reader (free)
* tud.at service – Web service and
GPL licensed
PHP
PHP is a general-purpose scripting language geared towards web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. ...
script for reading attachments in winmail.dat files
* www.winmaildat.com – Another online winmail.dat extractor which allows to upload up to 5 MB
* the-computer-site.com – converts winmail.dat file to a zip file
Software libraries
* JTNEF –
GPL Java TNEF package
* POI-HMEF – Java library of the
Apache POI project
* MVCOM – Commercial COM component to parse TNEF
* Convert::TNEF – TNEF library written in
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
* tnefparse library – TNEF access library written in
Python
Python may refer to:
Snakes
* Pythonidae, a family of nonvenomous snakes found in Africa, Asia, and Australia
** ''Python'' (genus), a genus of Pythonidae found in Africa and Asia
* Python (mythology), a mythical serpent
Computing
* Python (prog ...
, licensed under
LGPL
The GNU Lesser General Public License (LGPL) is a free-software license published by the Free Software Foundation (FSF). The license allows developers and companies to use and integrate a software component released under the LGPL into their own ...
* Aspose Email – Commercial Java and .NET library that can parse and extract TNEF data
* EAGetMail Component – Commercial .NET and ActiveX library that can parse and extract TNEF data
* node-tnef - NodeJS command line tool/library that can parse and extract TNEF data
* libytnef –
GPL TNEF extractor library written in C
* MimeKit – A .NET MIME creation and parser library with support for TNEF
* TNEF Decoder - A PHP Library to extract TNEF
[{{Cite web , title=github.com/QualityUnit/TNEFDecoder , website=]GitHub
GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
, url=https://github.com/QualityUnit/TNEFDecoder
References
External links
* Specification:
*
"M-OXTNEF: Transport Neutral Encapsulation Format (TNEF) Data Algorithm"- MS-TNEF format specifications
* Microsoft Support:
*
"How message format affects email messages"- How to disable TNEF in Outlook for Windows
*
"Description of Transport Neutral Encapsulation Format (TNEF) in Outlook 2000"- How to disable TNEF in Outlook 2000
*
"How to configure Internet e-mail message formats at the user and the domain levels in Exchange Server 2003"- Includes instructions on disabling TNEF
* Other:
*
Windows communication and services
Microsoft Office
Email