From 24c6607304323f0dd3c70bf952bfc5775735ca70 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jul 2022 16:15:48 +0200 Subject: Some more FETCH things work --- src/mail/incoming.rs | 2 +- src/mail/mod.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mail') diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs index 66513bf..8f074f5 100644 --- a/src/mail/incoming.rs +++ b/src/mail/incoming.rs @@ -392,7 +392,7 @@ async fn k2v_lock_loop_internal( let res = futures::try_join!(watch_lock_loop, lock_notify_loop, take_lock_loop); - info!("lock loop exited: {:?}, releasing", res); + info!("lock loop exited, releasing"); if !held_tx.is_closed() { warn!("wierd..."); diff --git a/src/mail/mod.rs b/src/mail/mod.rs index b6054b0..3b0ae73 100644 --- a/src/mail/mod.rs +++ b/src/mail/mod.rs @@ -1,4 +1,5 @@ use std::convert::TryFrom; +use std::io::Write; pub mod incoming; pub mod mailbox; @@ -17,6 +18,9 @@ impl<'a> TryFrom<&'a [u8]> for IMF<'a> { type Error = (); fn try_from(body: &'a [u8]) -> Result, ()> { + eprintln!("---- BEGIN PARSED MESSAGE ----"); + let _ = std::io::stderr().write_all(body); + eprintln!("---- END PARSED MESSAGE ----"); let parsed = mail_parser::Message::parse(body).ok_or(())?; Ok(Self { raw: body, parsed }) } -- cgit v1.2.3