1 parent 6a74c78 commit 6304769Copy full SHA for 6304769
2 files changed
src/lib.rs
@@ -1907,6 +1907,14 @@ mod tests {
1907
};
1908
}
1909
1910
+ #[test]
1911
+ fn test_recursion_limit() {
1912
+ let mail_filepath = "./tests/files/nested.eml";
1913
+ let mail = std::fs::read(mail_filepath)
1914
+ .expect(&format!("Unable to open the file [{}]", mail_filepath));
1915
+ parse_mail(&mail).unwrap();
1916
+ }
1917
+
1918
#[test]
1919
fn test_body_content_encoding_with_multipart() {
1920
let mail_filepath = "./tests/files/test_email_01.txt";
0 commit comments