Quoting Alain-Pierre Manine (2013-11-18 08:38:33) > Quoting Jameson Graef Rollins (2013-11-17 20:43:25) > > On Sun, Nov 17 2013, Patrick Totzke <patricktotzke@gmail.com> wrote: > > > Quoting Jameson Graef Rollins (2013-11-16 21:47:02) > > >> On Tue, Nov 12 2013, apmanine@idaaas.com wrote: > > >> > I have recently switched to notmuch. Thank you for it! > > >> > I'm using "alot" as a frontend (thank you for it, too!). Everything > > >> > works smoothly, apart from one problem: with alot, I can't figure out how > > >> > to read encrypted emails I previously sent: they appear to be encrypted > > >> > using the addressee's key. > > >> > > > >> > Is there some way to store encrypted sent emails with my own public gpg > > >> > key? > > >> > > >> What you really want is to tell gpg to always encrypt messages to your > > >> personal key as well, which will always make them viewable by you. This > > >> way you don't have to worry about saving unencrypted versions of the > > >> message to disk, or there being two distinct versions of the message > > >> (one encrypted to the recipient and a different one encrypted to you). > > >> > > >> See the "encrypt-to" gpg option [0]. > > >> > > >> jamie. > > >> > > >> [0] http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Key-related-Options.html > > > > > > Is this how notmuch emacs does it? I mean, is there some option to tell > > > emacs to always call gpg with --encrypt-to=me ? > > > I wonder if I need to change alot in any way or if one can simply globally configure > > > gnupg.. alot does not call the gpg binary but uses pygpgme. > > > > You do not need to change alot, just notmuch emacs also doesn't need to > > do anything special to allow for this. Just add an > > > > encrypt-to <keyid> > > > > line to your ~/.gnupg/gpg.conf, where <keyid> is your personal keyid. > > Then all encrypted data is also encrypted to your personal key, making > > it always viewable by you as well. Then you can just open your > > encrypted sent mail as you would any other encrypted mail. > > > > jamie. > > It's working! Thanks for the explanations. Excelent, thanks Jamie. I wasn't aware of this setting and assumed that the stuff in the gnupg config file only applies to gpg itself and not, as in alot, for calls through the gpgme library. Thanks for testing this Alain-Pierre. /p