diff --git a/lib/domain/libimagmail/src/util.rs b/lib/domain/libimagmail/src/util.rs index c58cf496..b1c2b5b9 100644 --- a/lib/domain/libimagmail/src/util.rs +++ b/lib/domain/libimagmail/src/util.rs @@ -41,10 +41,13 @@ pub(crate) fn get_message_header_at_key, K: AsRef>(p: P, k: .into_iter() .filter_map(|hdr| match hdr.get_key() { Err(e) => Some(Err(e).map_err(Error::from)), - Ok(k) => if k.to_lowercase() == k.as_ref() { - Some(Ok(hdr)) - } else { - None + Ok(key) => { + trace!("Test: {} == {}", key.to_lowercase(), k.as_ref()); + if key.to_lowercase() == k.as_ref() { + Some(Ok(hdr)) + } else { + None + } } }) .next()