Stop dumping parsed emails in the logs
This commit is contained in:
parent
99a802a7a4
commit
d495538d55
1 changed files with 0 additions and 3 deletions
|
@ -22,9 +22,6 @@ impl<'a> TryFrom<&'a [u8]> for IMF<'a> {
|
||||||
type Error = ();
|
type Error = ();
|
||||||
|
|
||||||
fn try_from(body: &'a [u8]) -> Result<IMF<'a>, ()> {
|
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;
|
let parsed = eml_codec::parse_message(body).or(Err(()))?.1;
|
||||||
Ok(Self { raw: body, parsed })
|
Ok(Self { raw: body, parsed })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue