add a test for handling mailinglists without ListId-header

This commit is contained in:
B. Petersen
2021-02-15 17:07:10 +01:00
committed by bjoern
parent 0c2b3e838e
commit d4e90c7fff
2 changed files with 62 additions and 1 deletions

View File

@@ -2576,5 +2576,10 @@ mod tests {
);
assert_eq!(msg.get_sender_name(&contact), "over ride".to_string());
assert_ne!(contact.get_display_name(), "over ride".to_string());
// explicitly check that the message does not create a mailing list
// (mailing lists may also use `Sender:`-header)
let chat = Chat::load_from_db(&bob, msg.chat_id).await.unwrap();
assert_ne!(chat.typ, Chattype::Mailinglist);
}
}