Automic VaultAutomic Vault

brew

Install tnef with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Microsoft MS-TNEF attachment unpacker. Version 1.4.18 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install tnef

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install tnef

MacPorts ports tree · textproc/tnef/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add tnef

Alpine Linux edge package indexes · tnef · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install tnef

Debian stable package indexes · tnef · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install tnef

Fedora Rawhide package metadata · tnef · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#tnef

nixpkgs package indexes · pkgs/by-name/tn/tnef/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install tnef

openSUSE Tumbleweed package metadata · tnef · source: download.opensuse.org

overview

Package summary

Microsoft MS-TNEF attachment unpacker

Commands and aliases

  • tnef

history

Project history and usage

TNEF is a small Unix command-line utility for unpacking Microsoft Transport Neutral Encapsulation Format attachments, commonly encountered as `application/ms-tnef` or `winmail.dat` files from Outlook and Exchange environments.

Project history

The project history is unusually well preserved in its NEWS file. It began with a 0.6 first public release, reached 1.0 with MAPI attribute parsing and long filename support, and then accumulated the practical fixes expected of a mail-attachment unpacker: safer path handling, tar-like command options, automated tests, NetBSD and big-endian portability, Mac OS X configuration fixes, MIME type listing, RTF body saving, Unicode handling, and memory/security hardening.

Development reflects the long tail of interoperability with proprietary mail formats. The README explains the reason for the tool: Outlook and Exchange caused more mail to be wrapped in Microsoft's TNEF format, and this program let users extract attachments without needing Microsoft Outlook. Later NEWS entries show maintenance around Unicode filenames, multi-value MAPI attributes, allocator hardening, integer overflow checks, null pointer avoidance, and malicious input handling.

Adoption history

TNEF became a classic packaging target because it solves a small but recurring system-administration problem. The supplied package facts list Homebrew, Debian, Ubuntu, Alpine, Fedora/DNF, MacPorts, Nix, and openSUSE/Zypper packaging, showing that it is carried broadly despite its narrow scope.

The README says it is mainly tested and used on GNU/Linux and Cygwin and should work on other Unix-like systems. That portability claim matches its package footprint: it is the kind of single-purpose C utility that distributions keep available so mail clients, scripts, and users can recover attachments from Microsoft-heavy environments.

How it is used

Users run `tnef` against a TNEF attachment to list or extract embedded files, message bodies, MIME types, or RTF data depending on options. Its normal role is not a daemon or workflow manager but a rescue utility for mail attachments that arrived in a Microsoft-only wrapper.

The project is especially useful in mixed Unix/Windows organizations, where a developer, sysadmin, or mail user may receive an attachment that is unreadable in a standard Unix mail client.

Why package nerds care

For package nerds, TNEF is a good example of a tiny utility that earns wide distribution packaging because it removes friction at an old interoperability boundary. It is not glamorous, but it turns a proprietary mail wrapper into ordinary files using normal Unix command-line patterns.

Its NEWS file is also a reminder that small parsers for hostile or malformed file formats need maintenance: many later releases are about bounds checks, overflows, Unicode edge cases, and safer extraction behavior.

Timeline

  • 0.6: First public release.
  • 1.0: Added MAPI attribute parsing and long filename support.
  • 2003: 1.2.2 added `--maxsize` for protection against hostile TNEF files.
  • 2006: 1.3.3 added message body saving and Unicode handling.
  • 2011: 1.4.8 switched to Git.
  • 2017: 1.4.13 fixed security issues reported by external researchers.
  • 2019: 1.4.18 improved strdup safety and corrected a bit-shift issue.

Related projects

  • Related to Unix mail clients and scripts that need to recover files from Outlook/Exchange `winmail.dat` attachments.
  • Adjacent to other TNEF/MAPI parsers, but this package is the long-standing command-line unpacker distributed by Unix package managers.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
tnefcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.4.18
manager updated
local dataok
upstreamcurrent
latest detected1.4.18

https://github.com/verdammelt/tnef

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:tnef
Version1.4.18
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tnef
Homepagehttps://github.com/verdammelt/tnef
Repositoryhttps://github.com/verdammelt/tnef
Upstream docshttps://github.com/verdammelt/tnef#readme
LicenseGPL-2.0-or-later
Source archivehttps://github.com/verdammelt/tnef/archive/refs/tags/1.4.18.tar.gz
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametnef
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

tnef 1.4.18-4

Tool to unpack MIME application/ms-tnef attachments

https://github.com/verdammelt/tnef

sudo apt install tnef
  • Section: text
  • Architecture: amd64
  • 1 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Tnef
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tnef from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

tnef

nix profile install nixpkgs#tnef
  • normalized package name match
  • Matched by: Tnef
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tn/tnef/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

tnef 1.4.18-3

Tool to unpack MIME application/ms-tnef attachments

https://github.com/verdammelt/tnef

sudo apt install tnef
  • Section: universe/text
  • Architecture: amd64
  • 1 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Tnef
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tnef from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

tnef 1.4.18-r0

Program for unpacking ms-tnef MIME attachment

https://github.com/verdammelt/tnef

sudo apk add tnef
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: tnef
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tnef
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tnef from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

tnef-doc 1.4.18-r0

Program for unpacking ms-tnef MIME attachment (documentation)

https://github.com/verdammelt/tnef

sudo apk add tnef-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: tnef
  • normalized package name match
  • Matched by: Tnef
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tnef-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

tnef 1.4.18-17.fc45

Extract files from email attachments like WINMAIL.DAT

https://github.com/verdammelt/tnef

sudo dnf install tnef
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tnef
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tnef
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tnef from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

tnef-dolphin 1.4.18-17.fc45

Provides TNEF extract extension for KDE's Dolphin file manager

https://github.com/verdammelt/tnef

sudo dnf install tnef-dolphin
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tnef
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tnef
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tnef-dolphin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

tnef-nautilus 1.4.18-17.fc45

Provides TNEF extract extension for Gnome's Nautilus file manager

https://github.com/verdammelt/tnef

sudo dnf install tnef-nautilus
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tnef
  • 2 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Tnef
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tnef-nautilus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

tnef 1.4.18-4.3

Uncompress MS-TNEF Archives

https://github.com/verdammelt/tnef

sudo zypper install tnef
  • License: GPL-2.0-or-later
  • Category: Productivity/Archiving/Compression
  • Architecture: x86_64
  • Source Package: tnef
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Tnef
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tnef from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

tnef

sudo port install tnef
  • normalized package name match
  • Matched by: Tnef
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/tnef/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment