summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/domain/libimagmail/src/util.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/domain/libimagmail/src/util.rs b/lib/domain/libimagmail/src/util.rs
index c58cf49..b1c2b5b 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<P: AsRef<Path>, K: AsRef<str>>(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()