mimeparser: do not allow key reset if DKIM check failed

This commit is contained in:
link2xt
2022-11-04 19:48:11 +00:00
parent 91ab10084a
commit 037739c634
2 changed files with 2 additions and 0 deletions

View File

@@ -298,6 +298,7 @@ impl MimeMessage {
if let Some(peerstate) = &mut decryption_info.peerstate {
if message_time > peerstate.last_seen_autocrypt
&& mail.ctype.mimetype != "multipart/report"
&& decryption_info.dkim_results.allow_keychange
{
peerstate.degrade_encryption(message_time);
peerstate.save_to_db(&context.sql, false).await?;