Whole document tree
2. General Use
By default, Mailcrypt assumes you are using one of the PGP 2.6.x
versions. This permits backward compatibility for the millions of
satisfied users of Mailcrypt 3.4 worldwide. If you wish to specify a
different version of PGP, use this function. Its action is the same as
setting the variable
Mailcrypt works by providing two minor modes for interfacing with
cryptographic functions:
The normal installation procedure (see section 1.2 Installation) will arrange
for the appropriate mode to be active when you read and compose mail and
news. But you may want to use Mailcrypt's functions at other times; to
do so, you can call
Once one of the Mailcrypt modes is active, you can get a summary of the
available functions by typing C-h m or by examining the
The description of each function below includes which of the modes has a binding for that function.
2.1 Encrypting a Message
The function When this function is called, Mailcrypt will prompt you for a comma-separated list of recipients. If called from a mail composition buffer, the recipient list will default to the Email addresses in the `To', `CC', and `BCC' lines of the message.
If you want to be able to decrypt the message yourself, you need to add
yourself to the recipient list. If you always want to do so, set the
variable If you provide an empty recipient list, Mailcrypt will ASCII-armor the message without encrypting it.
Once you have edited the recipient list to your satisfaction, type
RET to accept it. You will then be asked whether you want
to sign the message; answer y or n. You can avoid this
question by setting the variable If you elect to sign the message, Mailcrypt will prompt you for the appropriate passphrase unless it is cached (see section 4. Passphrase Cache).
Mailcrypt will then pass the message to PGP for processing. Mailcrypt
will call the functions listed in If an error occurs, Mailcrypt will display an appropriate diagnostic. If you do not have the public key for one of the specified recipients, Mailcrypt will offer to try to fetch it for you (see section 5. Key Fetching).
The default key for signing is the first one on the secret key ring
which matches the string
If you want to use a secret key other than your default for signing the
message, pass a prefix argument to
2.2 Signing a Message
The function When this function is called, Mailcrypt will prompt you for the appropriate passphrase unless it is cached (see section 4. Passphrase Cache).
Mailcrypt will then pass the message to PGP for processing. Mailcrypt
will call the functions listed in
The variable
2.3 Inserting a Public Key Block
The function
This function is useful for sending your public key to someone else or
for uploading it to the key servers (see section 9.2 Key Servers). The inserted
key will be the first one on your public key ring which matches the
string
You may want to insert a different public key instead; for example, you
may have signed someone's key and want to send it back to them. To do
so, pass a prefix argument to
2.4 Decrypting a message
The function When this function is called, Mailcrypt will prompt you for the appropriate passphrase unless it is cached (see section 4. Passphrase Cache). The encrypted message will then be passed to PGP for processing. If you are not in a mail buffer, the decrypted message will replace the encrypted form. If you are in a mail buffer, you will be prompted whether to do the replacement. If you answer n, you will be placed in a new mail reading buffer to view the decrypted message. This new mail reading buffer will have no corresponding disk file; its purpose is to provide you with all of your usual reply and citation functions without requiring you to save the message in decrypted form. Type q to kill this buffer.
You can avoid the question of whether to replace the encrypted message
by setting the variable If the encrypted message is also signed, PGP will attempt to verify the signature. If the verification fails because you lack the necessary public key, Mailcrypt will offer to fetch it for you (see section 5. Key Fetching).
Look in the
2.5 Verifying a Signature
The function When this function is called, Mailcrypt will pass the message to PGP for processing and report whether or not the signature verified. If the signature failed to verify because you lack the necessary public key, Mailcrypt will offer to fetch it for you (see section 5. Key Fetching).
2.6 Snarfing a Key
The function This function is useful when someone sends you a public key in an Email message.
This document was generated by Davide G. M. Salvetti on April, 12 2002 using texi2html |