The Mutt E-Mail Client : Configuration : Choosing the cryptographic key of the recipient
Previous: Change settings before formatting a message
Next: Adding key sequences to the keyboard buffer

## 3.20. Choosing the cryptographic key of the recipient

Usage: `crypt-hook` pattern keyid

When encrypting messages with PGP or OpenSSL, you may want to associate a certain key with a given e-mail address automatically, either because the recipient's public key can't be deduced from the destination address, or because, for some reasons, you need to override the key Mutt would normally use. The crypt-hook command provides a method by which you can specify the ID of the public key to be used when encrypting messages to a certain recipient.

The meaning of "key id" is to be taken broadly in this context: You can either put a numerical key ID here, an e-mail address, or even just a real name.

The Mutt E-Mail Client : Configuration : Choosing the cryptographic key of the recipient
Previous: Change settings before formatting a message
Next: Adding key sequences to the keyboard buffer