This section describes to sign or encrypt "text only" message with PGP. The following commands are explained.
To encrypt a message, receivers' public keys are used. In the contrary, your secret key is used to sign a message. So, you need to input your pass-phrase when sign up. Note that if you use the pass-phrase cache and if pass-phrases are cached, you do not have to type your pass-phrase(See section Visualizing PGP/MIME).
They are shortcut methods of mark based composing described in the next subsection.
If you use PGP with Mew, you have to select Email address for your PGP userid(e.g. "Kazuhiko Yamamoto <kazu@mew.org>").
Let's use the following example for further explanations.
To: pooh Subject: Let's PGP/MIME X-Mailer:Mew version 1.94 on XEmacs 20.4 ---- Mew starts walking with security multipart. Enjoy PGP/MIME! --Kazu
To sign with PGP, type `C-cC-s' resulting in the following.
To: winnie-the-pooh@100acre.woodwest.uk Subject: Let's PGP/MIME X-Mailer:Mew version 1.94 on XEmacs 20.4 Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg="pgp-md5"; boundary="--Security_Multipart(Sat_Nov_16_03:55:00_1996)--" Content-Transfer-Encoding: 7bit ----Security_Multipart(Sat_Nov_16_03:55:00_1996)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mew starts walking with security multipart. Enjoy PGP/MIME! --Kazu ----Security_Multipart(Sat_Nov_16_03:55:00_1996)-- Content-Type: Application/Pgp-Signature Content-Transfer-Encoding: 7bit -----BEGIN PGP MESSAGE----- Version: 2.6.3i iQCVAwUAMoy8ig9kihyeT3RNAQHt7AQAySDg4n8pOp/YuLaAp68Un/YDtWS0FnOC 7EqHJd6fyViPBnZq8d+uGikA7kOBTz+8Kcv+hN6I7BrQVJGEzd0Y9yHHhXvZj++1 0D09vgWL5G/Zfk/JMnLBt/BZ1ppOhJPT/L5qi2abk+mBVMKxQe071lfFEfvjF1C2 8trTXm/bBz4= =TvAG -----END PGP MESSAGE----- ----Security_Multipart(Sat_Nov_16_03:55:00_1996)----
Type `C-cC-c' to send it.
To encrypt with PGP, type `C-cC-e'. You get the following message.
To: winnie-the-pooh@100acre.woodwest.uk Subject: Let's PGP/MIME X-Mailer:Mew version 1.94 on XEmacs 20.4 Mime-Version: 1.0 Content-Type: Multipart/Encrypted; protocol="application/pgp-encrypted"; boundary="--Security_Multipart(Sat_Nov_16_03:57:47_1996)--" Content-Transfer-Encoding: 7bit ----Security_Multipart(Sat_Nov_16_03:57:47_1996)-- Content-Type: Application/Pgp-Encrypted Content-Transfer-Encoding: 7bit Version: 1 ----Security_Multipart(Sat_Nov_16_03:57:47_1996)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: 7bit -----BEGIN PGP MESSAGE----- Version: 2.6.3i hIwDD2SKHJ5PdE0BA/9gUkcQYVfT+3LrUmcgLkNepuOnDfjADHrWiNo10t4ijyf8 ODBpUBXoBdTg08eNLAWmRFhiJPmI+mxpF6cYFZXhr7gVpa0Qzp3Gr9nYvngRPKNK qUiQjA/ORR3c1TBawufB19jJ9RdU2f0BidhzOSbzsJh1LTgUZu/7Qyd02LxyEqYA AACbrV867PeoFyFc9MVfqTUR6Zw6kGBAlnVYjqQgBhuuyG79vbAbDJMhFiRpoRPf 0MqEewxRonwKOik/PoKnLrwFg77Cb5pxRqMiWPyECJnqtX7r7Wg1c8kqPD0VRjI9 GhHPiG/RmNbpbj/5g6zZri1YBCe8qxIS0QKa3YO7HRDcdBFARr22RaFGFtgdBQ6X cZB+qNeEaKXt3AneTWc= =djCr -----END PGP MESSAGE----- ----Security_Multipart(Sat_Nov_16_03:57:47_1996)----
Type `C-cC-c' to send it. This message is encrypted with your public key in addition to the receivers. So you can decrypt backup messages(e.g. Visiting to +Backup with `g').
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 either case, type `C-cC-c' to send the draft.
It is very likely that you forget to sign and/or encrypt a draft even if you want to do so. To resolve this, Mew provides automatic PGP mechanism for the massage creation function, `C-cC-m'
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 PGP services.
If you want to protect privacy of drafts replying encrypted messages, set `mew-protect-privacy-encrypted' to `t' and set `mew-protect-privacy-encrypted-type' to one of PGP 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 in brace are symbol of each service. The service applied when `C-cC-m' is displayed in the mode line.
The following example is to sign all drafts when `C-cC-m'.
(setq mew-protect-privacy-always t) (setq mew-protect-privacy-always-type 'pgp-signature)
The following example is to encrypt drafts replying encrypted messages when `C-cC-m'.
(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 don't forget to apply the privacy services when sending. To set privacy services to the current draft evaluated when `C-cC-m', type `C-cC-pC-d' then input one of privacy services above.