mod debug; pub(crate) fn write_to_test_path(msg: &Message) { let test_path: PathBuf = [ Path::new("tests/data"), Path::new(&format!("{}.eml", &msg.get_uid())), ] .iter() .collect(); let _ = OpenOptions::new() .write(true) .create(true) .open(test_path) .expect("Could not open file fir writing") .write_all(&msg.data); }