feat: protect Autocrypt header

This commit is contained in:
link2xt
2025-08-12 22:11:05 +00:00
committed by l
parent 9826c28581
commit 5256013615
6 changed files with 7 additions and 54 deletions

View File

@@ -964,10 +964,6 @@ impl MimeFactory {
hidden_headers.push(header.clone());
} else if is_hidden(&header_name) {
hidden_headers.push(header.clone());
} else if header_name == "autocrypt"
&& !context.get_config_bool(Config::ProtectAutocrypt).await?
{
unprotected_headers.push(header.clone());
} else if header_name == "from" {
// Unencrypted securejoin messages should _not_ include the display name:
if is_encrypted || !is_securejoin_message {