From a29e2886150341981a2c5d0ea825fda817d44eeb Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Fri, 11 Jun 2021 16:21:04 +0200 Subject: [PATCH] browse: handle emails without Message-ID --- src/bin/browse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/browse.rs b/src/bin/browse.rs index 92f12a8..fb3dd1c 100644 --- a/src/bin/browse.rs +++ b/src/bin/browse.rs @@ -61,7 +61,7 @@ fn show_listing(mailbox: &str) -> Result<()> { let mut threads: HashMap<_, Vec<_>> = HashMap::new(); for i in 0..mails.len() { let mail = &*mails[i]; - let mid = mail.get_header("Message-ID"); + let mid = mail.get_headers().message_id(mailbox, mail.id); threads.entry(mid.clone()).or_default().push(mail); if mails_by_id.insert(mid, mail).is_some() { println!("error: missing/duplicate Message-ID");