Re: Attach public key and encrypt by default

2019-12-18 Thread Jörg Volbers
I use a minor mode which automatically adds an encryption tag to the message if a key is known to exist. It does not look up the key, it only checks the private store (those keys which are already known by the gpg agent). Maybe you could adapt this to your needs. The source is located at

Re: Attach public key and encrypt by default

2019-12-17 Thread Jameson Graef Rollins
On Mon, Dec 16 2019, "Carolyn \"Lynn\" Knight-Serrano" wrote: > I have two feature requests/questions for notmuch-emacs? One would it > be possible to add or configure in support for automatically adding > your gpg public key to messages? Second, could there be a feature that > checks if there's

Re: Attach public key and encrypt by default

2019-12-17 Thread Ralph Seichter
* Carolyn Knight-Serrano: > would it be possible to add or configure in support for automatically > adding your gpg public key to messages? As already mentioned, adding several KB of GPG key to the body of each of your messages would be very impolite, and it might get you flagged as a spammer.

Re: Attach public key and encrypt by default

2019-12-16 Thread Brian Sniffen
Two ideas: echo “-- “ > ~/.signature gpg -a -e $USER >> !$ This is hardly polite, but at least the signature will be stripped off by many archives and replies. Alternatively, (add-hook ‘message-setup-hook (lambda () (mml-attach-file “path/to/pubkey.gpg”)) But this still puts kilobytes of

Re: Attach public key and encrypt by default

2019-12-16 Thread Carolyn "Lynn" Knight-Serrano
Oh! I figured out how to encrypt by default. I still can't figure out how to attach my public key by default though. On December 16, 2019 10:57:12 PM UTC, "Carolyn "Lynn" Knight-Serrano" wrote: >I have two feature requests/questions for notmuch-emacs? One would it >be possible to add or

Attach public key and encrypt by default

2019-12-16 Thread Carolyn "Lynn" Knight-Serrano
I have two feature requests/questions for notmuch-emacs? One would it be possible to add or configure in support for automatically adding your gpg public key to messages? Second, could there be a feature that checks if there's a gpg key for the recipient of a message and if there is, turn on