re-enable parser

This commit is contained in:
Quentin 2023-06-22 12:21:18 +02:00
parent f7972f8fa5
commit 14bcf119a7
Signed by: quentin
GPG key ID: E9602264D639FF68
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,4 @@
Date: 7 Mar 2023 08:00:00 +0200
From: someone@example.com From: someone@example.com
To: someone_else@example.com To: someone_else@example.com
Subject: An RFC 822 formatted message Subject: An RFC 822 formatted message

View file

@ -65,7 +65,6 @@ fn received_tokens(input: &str) -> IResult<&str, &str> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use chrono::{FixedOffset, TimeZone};
#[test] #[test]
fn test_received_body() { fn test_received_body() {

View file

@ -24,8 +24,8 @@ fn main() {
parser(&rawmail[..], |section| { parser(&rawmail[..], |section| {
// Checks/debug // Checks/debug
println!("{:?}", section); println!("{:?}", section);
//assert!(hdrs.date.is_some()); assert!(section.date.is_some());
//assert!(hdrs.from.len() > 0); assert!(section.from.len() > 0);
//assert!(hdrs.bad_fields.len() == 0); assert!(section.bad_fields.len() == 0);
}); });
} }