Crates.io | tnef |
lib.rs | tnef |
version | 0.1.1 |
source | src |
created_at | 2019-08-13 16:40:55.12961 |
updated_at | 2019-08-13 16:48:53.154497 |
description | A basic TNEF parser written in pure Rust |
homepage | |
repository | https://github.com/newpavlov/tnef |
max_upload_size | |
id | 156482 |
size | 25,815 |
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
.
for attribute in tnef::TnefReader::new(tnef_data)? {
let (id, data) = attribute?;
println!("{:?} {}", id, data.len());
}
This crate requires Rust 1.32.0 or later.
All crates licensed under either of
at your option.
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.