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.
- Rend
Data - Attachment rendering data.
- Tnef
Reader - TNEF reader.
Enums§
- Attach
Attr Id - Attachment level attribute IDs.
- Attach
Data Flags - Attachment data flags
- Attach
Type - Attachment type.
- Attribute
Id - Attribute ID.
- Message
Attr Id - Message level attribute IDs.
Functions§
- read_
attachments - Convenience function for extracting attachments from TNEF data.