aboutsummaryrefslogtreecommitdiff
path: root/src/mail/mod.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-15 16:15:48 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-15 16:15:48 +0200
commit24c6607304323f0dd3c70bf952bfc5775735ca70 (patch)
tree824cd15d393d38f69f8d4fd8cfb5fa7921ee69ee /src/mail/mod.rs
parent64a322b4cb11a73c2da5f1a44649384a16b3ee2b (diff)
downloadaerogramme-24c6607304323f0dd3c70bf952bfc5775735ca70.tar.gz
aerogramme-24c6607304323f0dd3c70bf952bfc5775735ca70.zip
Some more FETCH things work
Diffstat (limited to 'src/mail/mod.rs')
-rw-r--r--src/mail/mod.rs4
1 files changed, 4 insertions, 0 deletions
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<IMF<'a>, ()> {
+ 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 })
}