mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
fix: use protected Date with protected Autocrypt
This commit is contained in:
@@ -345,6 +345,13 @@ impl MimeMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
decrypted_msg = Some(msg);
|
decrypted_msg = Some(msg);
|
||||||
|
|
||||||
|
timestamp_sent = Self::get_timestamp_sent(
|
||||||
|
&decrypted_mail.headers,
|
||||||
|
timestamp_sent,
|
||||||
|
timestamp_rcvd,
|
||||||
|
);
|
||||||
|
|
||||||
if let Some(protected_aheader_value) = decrypted_mail
|
if let Some(protected_aheader_value) = decrypted_mail
|
||||||
.headers
|
.headers
|
||||||
.get_header_value(HeaderDef::Autocrypt)
|
.get_header_value(HeaderDef::Autocrypt)
|
||||||
@@ -416,8 +423,6 @@ impl MimeMessage {
|
|||||||
content
|
content
|
||||||
});
|
});
|
||||||
if let (Ok(mail), true) = (mail, encrypted) {
|
if let (Ok(mail), true) = (mail, encrypted) {
|
||||||
timestamp_sent =
|
|
||||||
Self::get_timestamp_sent(&mail.headers, timestamp_sent, timestamp_rcvd);
|
|
||||||
if !signatures.is_empty() {
|
if !signatures.is_empty() {
|
||||||
// Remove unsigned opportunistically protected headers from messages considered
|
// Remove unsigned opportunistically protected headers from messages considered
|
||||||
// Autocrypt-encrypted / displayed with padlock.
|
// Autocrypt-encrypted / displayed with padlock.
|
||||||
|
|||||||
Reference in New Issue
Block a user