feat: MimeMessage: Put intended recipient fingerprints into signature

This commit is contained in:
iequidoo
2026-01-23 10:45:29 -03:00
committed by iequidoo
parent f4ee01ecca
commit 7c55356271
4 changed files with 42 additions and 16 deletions

View File

@@ -577,7 +577,7 @@ pub(crate) async fn receive_imf_inner(
// For example, GitHub sends messages from `notifications@github.com`,
// but uses display name of the user whose action generated the notification
// as the display name.
let fingerprint = mime_parser.signature.as_ref();
let fingerprint = mime_parser.signature.as_ref().map(|(fp, _)| fp);
let (from_id, _from_id_blocked, incoming_origin) = match from_field_to_contact_id(
context,
&mime_parser.from,
@@ -3901,7 +3901,7 @@ async fn has_verified_encryption(
let signed_with_verified_key = mimeparser
.signature
.as_ref()
.is_some_and(|signature| *signature == fingerprint);
.is_some_and(|(signature, _)| *signature == fingerprint);
if signed_with_verified_key {
Ok(Verified)
} else {