From e575be25939162deca4bac174132cafdc83c0ef7 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Tue, 14 Apr 2020 10:29:19 +0200 Subject: [PATCH] For mailing lists, always add the subject --- src/mimeparser.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mimeparser.rs b/src/mimeparser.rs index cc3c4198b..2a1173bbe 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -282,6 +282,11 @@ impl MimeMessage { prepend_subject = false } } + // For mailing lists, always add the subject because sometimes there are different topics + // and otherwise it might be hard to keep track: + if self.get(HeaderDef::ListId).is_some() { + prepend_subject = true; + } if prepend_subject { let subj = if let Some(n) = subject.find('[') { &subject[0..n]