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

@@ -37,6 +37,7 @@
### Fixes
- `dc_search_msgs()` returns unaccepted requests #3694
- emit "contacts changed" event when the contact is no longer "seen recently" #3703
- do not allow peerstate reset if DKIM check failed #3731
## 1.98.0

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?;