Fix #1790 Unprotected subjects in encrypted messages are shown as encrypted (using a rather minimal approach)

This commit is contained in:
Hocuri
2020-08-09 16:32:26 +02:00
committed by holger krekel
parent ad13097a9a
commit 1c2b4fa7fc

View File

@@ -160,6 +160,10 @@ impl MimeMessage {
// do not allow overriding it.
let mut throwaway_from = from.clone();
// We do not want to allow unencrypted subject in encrypted emails because the user might falsely think that the subject is safe.
// See https://github.com/deltachat/deltachat-core-rust/issues/1790.
headers.remove("subject");
MimeMessage::merge_headers(
context,
&mut headers,