diff options
-rw-r--r-- | melib/src/email/parser.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs index 0e9fe530..be4c1c5b 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -974,23 +974,6 @@ mod tests { fn test_attachments() { //FIXME: add file return; - /* - use std::io::Read; - let mut buffer: Vec<u8> = Vec::new(); - let _ = std::fs::File::open("").unwrap().read_to_end(&mut buffer); - let boundary = b"b1_4382d284f0c601a737bb32aaeda53160"; - let (_, body) = match mail(&buffer).to_full_result() { - Ok(v) => v, - Err(_) => panic!(), - }; - let attachments = attachments(body, boundary).to_full_result().unwrap(); - assert_eq!(attachments.len(), 4); - let v: Vec<&str> = attachments - .iter() - .map(|v| std::str::from_utf8(v).unwrap()) - .collect(); - println!("attachments {:?}", v); - */ } #[test] fn test_addresses() { |