Generate mutt crypt_auto* send-hooks from gpg pubring.
Go to file
erAck 70de92b1fa Ignore/discard keys marked invalid
2nd gpg colon field:
i := invalid (e.g. due to a missing self-signature)

Also add a comment that keys having the encrypt capability only on
subkeys (i.e. not on the main key) are ignored. Which was always the
case. Time for a rewrite maybe.. or just use the now long existing Mutt
crypt_opportunistic_encrypt feature.
2020-04-19 14:58:20 +02:00
README.md Ignore/discard keys marked invalid 2020-04-19 14:58:20 +02:00
UNLICENSE Rename LICENSE to UNLICENSE ... as it is ... 2019-08-17 22:37:19 +02:00
generate_crypt_auto Ignore/discard keys marked invalid 2020-04-19 14:58:20 +02:00

README.md

mutt-gpg-crypt_auto

Generate mutt crypt_auto... send-hooks from gpg pubring.

generate_crypt_auto

A shell script using sed to parse the output of gpg --list-keys --with-colons ... and generate a list of Mutt

send-hook "!~l ~t mail@example\\.org" "set crypt_autoencrypt crypt_autosign"

commands for each UID, discarding disabled, expired, invalid and revoked keys.

The latest version of this script is also downloadable here as it was always since the year 2008 ...