Tnef
A basic TNEF parser written in pure Rust
Install / Use
/learn @newpavlov/TnefREADME
TNEF

A basic TNEF parser written in pure Rust.
TNEF file contains a stream of records called "attributes". Using TnefReader
you can read attributes stored in the provided TNEF buffer. At the moment we do
not handle parsing of attribute data outside of attachment attributes.
If you just want to unpack attachments stored in TNEF, you can use a
convenience function read_attachments.
Based on official specifications, revision v11.0.
Usage example
for attribute in tnef::TnefReader::new(tnef_data)? {
let (id, data) = attribute?;
println!("{:?} {}", id, data.len());
}
Minimum Supported Rust Version (MSRV)
This crate requires Rust 1.32.0 or later.
License
Licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
