Penguin
Blame: MuttGPGEncryptToSelf
EditPageHistoryDiffInfoLikePages
Annotated edit history of MuttGPGEncryptToSelf version 14, including all changes. View license author blame.
Rev Author # Line
13 AristotlePagaltzis 1 If you want to be able to read encrypted mail you have sent (in your sent-mail folder), you will have to encrypt outgoing mail with multiple keys, one of them being your own. At one point there was apparently a mutt option called <tt>pgp_encryptself</tt>, but it seems to no longer exist.
14 JohnMcPherson 2
10 AristotlePagaltzis 3
13 AristotlePagaltzis 4 To do that anyway, you will first need your key ID, which you can find as follows:
12 CraigBox 5 <verbatim>
13 AristotlePagaltzis 6 $ gpg --list-key your@email.address
7 pub 1024D/72A6205E 2003-07-20 Kevin George <kevin@... .net>
8 uid Kevin George <kevin@... .com>
9 [...]
12 CraigBox 10 </verbatim>
10 AristotlePagaltzis 11
13 AristotlePagaltzis 12 The ID is the number after the first slash - 72A6205E in this case.
11 TomislavRenic 13
13 AristotlePagaltzis 14 The easiest way to do things is to just add the following lines to <tt>~/.gnupg/gpg.conf</tt>, replacing ABCD1234 with your key ID you found in the previous step:
12 CraigBox 15 <pre>
11 TomislavRenic 16 default-key ABCD1234
17 encrypt-to ABCD1234
12 CraigBox 18 </pre>
11 TomislavRenic 19
13 AristotlePagaltzis 20 Beware though, that this change will encrypt everything to your own key, not just mails sent from [Mutt].
21
22 If you want to encrypt only mail with your own public key as well as the recipient's public key, you need to customize the <tt>pgp_encrypt</tt> setting in your [.muttrc]. If you customized <tt>pgp_encrypt_only_command</tt> or <tt>pgp_encrypt_sign_command</tt>, you just want to add to them. If not, find them in <tt>/etc/Muttrc</tt>.
23
24 Now edit the <tt>pgp_encrypt_only_command</tt> and <tt>pgp_encrypt_sign_command</tt> lines of your [.muttrc] or add new ones based on the entries in <tt>/etc/Muttrc</tt>, and include an <tt>--encrypt-to ABCD1234</tt> parameter in both, where ABCD1234, again, is to be replaced by the key ID from your key. Restart [Mutt] and try sending encrypted email to someone else, then try reading it in your sent-mail folder.
11 TomislavRenic 25
13 AristotlePagaltzis 26 After upgrades to [Mutt], make sure to check your <tt>/etc/Muttrc</tt> to see if any of the <tt>pgp_encrypt_X</tt> lines have changed. You should only edit the lines in [.muttrc] for that reason. Not making changes the central configuration also makes sense in case the system is (going to be) used by other users -- they will appreciate that their encrypted mail is not readable to you. ;-)
10 AristotlePagaltzis 27
28 ----
29 Part of CategoryCryptography
The following authors of this page have not agreed to the WlugWikiLicense. As such copyright to all content on this page is retained by the original authors.
  • TomislavRenic
The following authors of this page have agreed to the WlugWikiLicense.

PHP Warning

lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

lib/plugin/WlugLicense.php (In template 'html'):111: Notice: Undefined variable: ignore_authors