mirror of
https://github.com/FliegendeWurst/inboxid.git
synced 2024-11-21 16:34:59 +00:00
browse: handle emails without Message-ID
This commit is contained in:
parent
2aca3bd8d5
commit
a29e288615
@ -61,7 +61,7 @@ fn show_listing(mailbox: &str) -> Result<()> {
|
|||||||
let mut threads: HashMap<_, Vec<_>> = HashMap::new();
|
let mut threads: HashMap<_, Vec<_>> = HashMap::new();
|
||||||
for i in 0..mails.len() {
|
for i in 0..mails.len() {
|
||||||
let mail = &*mails[i];
|
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);
|
threads.entry(mid.clone()).or_default().push(mail);
|
||||||
if mails_by_id.insert(mid, mail).is_some() {
|
if mails_by_id.insert(mid, mail).is_some() {
|
||||||
println!("error: missing/duplicate Message-ID");
|
println!("error: missing/duplicate Message-ID");
|
||||||
|
Loading…
Reference in New Issue
Block a user