Skip to content

distill-io/mail_extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Extractor

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.

How to use

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
}

Add the dependency in Cargo.toml

[dependencies]
mail_extractor = "0.1.3"

Releases

No releases published

Packages

No packages published

Languages