Crate tnef

Source
Expand description

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.

§Usage example

for attribute in tnef::TnefReader::new(tnef_data)? {
    let (id, data) = attribute?;
    println!("{:?} {}", id, data.len());
}

Structs§

Attachment
TNEF attachment.
RawAttachment
TNEF attachment.
RendData
Attachment rendering data.
TnefReader
TNEF reader.

Enums§

AttachAttrId
Attachment level attribute IDs.
AttachDataFlags
Attachment data flags
AttachType
Attachment type.
AttributeId
Attribute ID.
MessageAttrId
Message level attribute IDs.

Functions§

read_attachments
Convenience function for extracting attachments from TNEF data.