Stop dumping parsed emails in the logs

This commit is contained in:
Quentin 2024-01-06 14:45:26 +01:00
parent 99a802a7a4
commit d495538d55
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -22,9 +22,6 @@ impl<'a> TryFrom<&'a [u8]> for IMF<'a> {
type Error = ();
fn try_from(body: &'a [u8]) -> Result<IMF<'a>, ()> {
eprintln!("---- BEGIN PARSED MESSAGE ----");
let _ = std::io::stderr().write_all(body);
eprintln!("---- END PARSED MESSAGE ----");
let parsed = eml_codec::parse_message(body).or(Err(()))?.1;
Ok(Self { raw: body, parsed })
}