Skip to main content

recent_mismatch_for

Function recent_mismatch_for 

Source
pub(super) fn recent_mismatch_for(
    audit: &[AuditLogEntry],
    agent_id: &str,
    block_id: Option<&str>,
) -> Option<MismatchAuditSummary>
Expand description

The newest refusal by the recipient identity guard in audit (newest first). A refusal is logged with the block the message resolved to, but under the address it used (uid, alias or name), so with a block_id it matches on the block alone: a name reused by a newer block must not inherit the old block’s refusal. Without one it falls back to the name.