Show Cc in default headers in mail view

memfd
Manos Pitsidianakis 2020-03-28 11:45:31 +02:00
parent 9afb636894
commit a3903ea2cb
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 7 additions and 0 deletions

View File

@ -437,6 +437,13 @@ impl Component for MailView {
format!("Date: {}", envelope.date_as_str())
format!("From: {}", envelope.field_from_to_string())
format!("To: {}", envelope.field_to_to_string())
);
if envelope.other_headers().contains_key("Cc")
&& !envelope.other_headers()["Cc"].is_empty()
{
print_header!(format!("Cc: {}", envelope.field_cc_to_string()));
}
print_header!(
format!("Subject: {}", envelope.subject())
format!("Message-ID: <{}>", envelope.message_id_raw())
);