We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07b5c9 commit 2cea911Copy full SHA for 2cea911
src/mimeparser.rs
@@ -345,6 +345,18 @@ impl MimeMessage {
345
}
346
347
decrypted_msg = Some(msg);
348
+
349
+ if let Some(protected_timestamp_sent) = decrypted_mail
350
+ .headers
351
+ .get_header_value(HeaderDef::Date)
352
+ .and_then(|v| mailparse::dateparse(&v).ok())
353
+ {
354
+ timestamp_sent = min(
355
+ protected_timestamp_sent,
356
+ timestamp_rcvd + constants::TIMESTAMP_SENT_TOLERANCE,
357
+ )
358
+ }
359
360
if let Some(protected_aheader_value) = decrypted_mail
361
.headers
362
.get_header_value(HeaderDef::Autocrypt)
0 commit comments