On Wed, 05 May 2021 07:38 -0600, Gregory Anders wrote:
Hi all,
I'm curious if it's possible to have mutt validate DKIM signatures and
show the result in the email message (similar to how PGP or S/MIME
validation is done)?
Has anyone attempted this, and if so would you be willing to share?
Thanks,
GA
Just following up on this. The solution I've landed on that I'm fairly
happy with is:
unignore authentication-results
set header_color_partial
color header bold red default "(dkim|spf|dmarc)=fail"
color header green default "(dkim|spf|dmarc)=pass"
This will show the Authentication-Results header (if present) and color
the result green if it passed or red if it failed.
It's also possible to only show the Authentication-Results header for
failed authentication:
message-hook ~A 'ignore authentication-results'
message-hook '~h "^Authentication-Results: .*(dkim|spf|dmarc)=fail"'
'unignore authentication-results'
Though with this approach it's not immediately obvious whether a message
is signed with DKIM or not.
Hopefully someone else finds this useful!
Greg