[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.15 Creating signature or cipher message

This section explains the method for signing or encrypting "text only" messages with PGP or S/MIME. The following commands are explained.

C-cC-s

Sign the entire draft. Input your pass-phrase.

C-cC-e

Encrypt the entire draft.

C-cC-b

Sign, and then encrypt the entire draft. Input your pass-phrase.

C-cC-r

Encrypt, and then sign the entire draft. Input your pass-phrase.

To encrypt a message, receivers' public keys are used. On the other hand, your secret key is used to sign a message, and so you need to input your pass-phrase when applying the signature. Note that if you are using the pass-phrase cache or the master password mechanism and there are pass-phrases presently cached, you do not have to type your pass-phrase (See section Password).

These commands create a PGP/MIME message by default. If you want to use S/MIME, configure as follows:

 
(setq mew-draft-privacy-method 'smime)

You can change this variable with ‘C-cC-pC-m’ in Draft mode.

We can consider that these four commands above are shortcut methods of mark based composing described in the next section.

To sign a message, type ‘C-cC-s’. When signing, because your secret key is needed to be decrypted, you may be asked for your pass-phrase if it is not cached. Created messages are stored in +queue or +postq.

Your secret key is identified in From: address. If From: does not exist, your default secret key is selected. When you want to specify a secret key that is not identified the address of From:, type ‘C-uC-cC-s’.

To encrypt a message, type ‘C-cC-e’. A message is encrypted with public keys identified with the addresses on To: and Cc:. Since this is encryption only, you are not asked for your pass-phrase. Created cipher messages are stored in +queue.

This message is encrypted with your public key in addition to those of the receivers. Therefore you can decrypt created messages. For example, you can go to +queue by ‘g’ and preview a created message to reconfirm this.

To sign a draft and then encrypt it, type ‘C-cC-b’. To encrypt a draft and then sign it, type ‘C-cC-r’. In both cases, created messages are stored in +queue.

It is very likely that you will forget to sign and/or encrypt a draft even if you intended to do so. To prevent this, Mew provides an mechanism to automatically sign or encrypt a message when ‘C-cC-m’ or ‘C-cC-c’ is typed.

If you want to protect privacy of all drafts, set ‘mew-protect-privacy-always’ to ‘t’ and set ‘mew-protect-privacy-always-type’ to one of services.

If you want to protect the privacy of drafts when replying encrypted messages, set ‘mew-protect-privacy-encrypted’ to ‘t’ and set ‘mew-protect-privacy-encrypted-type’ to one of the services. This configuration is preferred to the configuration for all drafts described above in the case of replying encrypted messages.

The following services are available. The strings enclosed in braces are the symbols for each service. The service applied when typing ‘C-cC-m’ or ‘C-cC-c’ is displayed in the mode line.

pgp-signature (PS)

Sign with PGP

pgp-encryption (PE)

Encrypt with PGP

pgp-signature-encryption (PSPE)

Sign then encrypt with PGP

pgp-encryption-signature (PEPS)

Encrypt then sign with PGP

pgp-signature (SS)

Sign with S/MIME

pgp-encryption (sE)

Encrypt with S/MIME

pgp-signature-encryption (SSSE)

Sign then encrypt with S/MIME

pgp-encryption-signature (SESS)

Encrypt then sign with S/MIME

The following example works for signing all drafts.

 
(setq mew-protect-privacy-always t)
(setq mew-protect-privacy-always-type 'pgp-signature)

The following example is for encrypting drafts with PGP when replying encrypted messages.

 
(setq mew-protect-privacy-encrypted t)
(setq mew-protect-privacy-encrypted-type 'pgp-encryption)

In Draft mode, ‘C-cC-pC-a’ toggles ‘mew-protect-privacy-always’ and ‘C-cC-pC-e’ toggles ‘mew-protect-privacy-encrypted’.

You can specify privacy services for the current draft in Draft mode beforehand so that you do not forget to apply the privacy services when sending. To set privacy services to the current draft evaluated when typing ‘C-cC-m’ or ‘C-cC-c’, type ‘C-cC-pC-d’, and then input one of privacy services listed above. To cancel the current privacy service, just type ‘RET’ instead of selecting the privacy service.

When you compose a message by ‘C-cC-c’ or ‘C-cC-m’, and if signing and/or encryption fails, the cursor gets back to the draft. At this time, the service that you specified is canceled. If you type ‘C-cC-c’ or ‘C-cC-m’ in this situation, a plain message is created, so please be careful. After correcting the cause of the failure, if you want the same service, type ‘C-cC-pC-d’ to specify your service explicitly or use ‘C-cC-s’, ‘C-cC-e’, etc.

If ‘mew-use-old-pgp’ is set to ‘t’ (the default value is ‘nil’), ‘C-cC-s’ and ‘C-cC-e’, etc create old fashioned PGP message instead of PGP/MIME. If the attachment region exists, an error occurs.

mew-protect-privacy-*’ described above are effective only to PGP/MIME, not to old PGP. If you want to create old PGP signature with ‘C-cC-m’ or ‘C-cC-c’ always, set ‘mew-protect-privacy-with-old-pgp-signature’ to ‘t’.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by U-X61T\saito on June, 6 2008 using texi2html 1.78.