Skip to main content

extract_attachments

Function extract_attachments 

Source
pub fn extract_attachments(draft: &str) -> (String, Vec<Attachment>)
Expand description

Pull mutt-style Attach: <path> [type/subtype] [description] pseudo-headers out of a draft’s header block; quotes allow a path with spaces, ~/ means $HOME. Returns the draft without those lines.