Fix: Also show the hop_info for encrypted messages (#2923)

Before, the hop_info was shown only for unencrypted messages.

Credits: The bug was noticed by link2xt

Follow-up for #2751
This commit is contained in:
Hocuri
2021-12-28 13:23:41 +01:00
committed by GitHub
parent 273a38d781
commit d47680733b
3 changed files with 121 additions and 13 deletions

View File

@@ -165,6 +165,7 @@ impl MimeMessage {
.get_header_value(HeaderDef::Date)
.and_then(|v| mailparse::dateparse(&v).ok())
.unwrap_or_default();
let hop_info = parse_receive_headers(&mail.get_headers());
let mut headers = Default::default();
let mut recipients = Default::default();
@@ -296,7 +297,7 @@ impl MimeMessage {
footer: None,
is_mime_modified: false,
decoded_data: Vec::new(),
hop_info: parse_receive_headers(&mail.get_headers()),
hop_info,
};
match partial {