mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
mimeparser: do not allow key reset if DKIM check failed
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
### Fixes
|
### Fixes
|
||||||
- `dc_search_msgs()` returns unaccepted requests #3694
|
- `dc_search_msgs()` returns unaccepted requests #3694
|
||||||
- emit "contacts changed" event when the contact is no longer "seen recently" #3703
|
- 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
|
## 1.98.0
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ impl MimeMessage {
|
|||||||
if let Some(peerstate) = &mut decryption_info.peerstate {
|
if let Some(peerstate) = &mut decryption_info.peerstate {
|
||||||
if message_time > peerstate.last_seen_autocrypt
|
if message_time > peerstate.last_seen_autocrypt
|
||||||
&& mail.ctype.mimetype != "multipart/report"
|
&& mail.ctype.mimetype != "multipart/report"
|
||||||
|
&& decryption_info.dkim_results.allow_keychange
|
||||||
{
|
{
|
||||||
peerstate.degrade_encryption(message_time);
|
peerstate.degrade_encryption(message_time);
|
||||||
peerstate.save_to_db(&context.sql, false).await?;
|
peerstate.save_to_db(&context.sql, false).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user