[−][src]Crate mail_extractor
Mail Extractor
Mail_extractor
is a Rust library to extract files
from MIME type files and returns you a hashmap
which will contain filename and it corresponding file content as bytes.
Example
use std::collections::HashMap; use mail_extractor; fn get_files(file_stream: Vec<u8>) -> HashMap<String, Vec<u8>> { let extracted_file: HashMap<String, Vec<u8>> = mail_extractor::rewrite(file_stream); extracted_file }
Functions
rewrite | Rewrites file and returns it's corresponding file content as bytes. |