mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
Update the comment in encrypted message branch
Since try_decrypt does not check if the message has valid signatures anymore, it may return empty signatures set, which means the message is not a valid autocrypt message.
This commit is contained in:
committed by
link2xt
parent
ac232a5dbf
commit
a4ca9f738b
@@ -131,7 +131,10 @@ impl MimeMessage {
|
|||||||
let (mail, signatures) = match e2ee::try_decrypt(context, &mail, message_time).await {
|
let (mail, signatures) = match e2ee::try_decrypt(context, &mail, message_time).await {
|
||||||
Ok((raw, signatures)) => {
|
Ok((raw, signatures)) => {
|
||||||
if let Some(raw) = raw {
|
if let Some(raw) = raw {
|
||||||
// Valid autocrypt message, encrypted
|
// Encrypted, but maybe unsigned message. Only if
|
||||||
|
// `signatures` set is non-empty, it is a valid
|
||||||
|
// autocrypt message.
|
||||||
|
|
||||||
mail_raw = raw;
|
mail_raw = raw;
|
||||||
let decrypted_mail = mailparse::parse_mail(&mail_raw)?;
|
let decrypted_mail = mailparse::parse_mail(&mail_raw)?;
|
||||||
if std::env::var(crate::DCC_MIME_DEBUG).is_ok() {
|
if std::env::var(crate::DCC_MIME_DEBUG).is_ok() {
|
||||||
|
|||||||
Reference in New Issue
Block a user