Attach public key and encrypt by default

Brian Sniffen bts at evenmere.org
Mon Dec 16 20:02:07 PST 2019


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 useless crud on every message. Please don’t. Maybe a URL to your key in your signature would be enough?

-- 
Brian Sniffen

> On Dec 16, 2019, at 10:52 PM, Carolyn Lynn Knight-Serrano <gigavinyl at riseup.net> wrote:
> 
> 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" <gigavinyl at riseup.net> 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 a gpg key for the recipient of a message and if there
>> is, turn on encryption by default? Thanks! 
>> -/-\-/-\-/-
>> 
>> Carolyn "Lynn" Knight-Serrano [xe/xem/xyr/xemself]
>> 
>> 🔐PGP Fingerprint: 0xf02b733b4382e451c8c2fff550858748146544cb
>> 
>> 🕸Fediverse: @gigavinyl at catgirl.science 
>> _______________________________________________
>> notmuch mailing list
>> notmuch at notmuchmail.org
>> https://notmuchmail.org/mailman/listinfo/notmuch
> 
> -/-\-/-\-/-
> 
> Carolyn "Lynn" Knight-Serrano [xe/xem/xyr/xemself]
> 
> 🔐PGP Fingerprint: 0xf02b733b4382e451c8c2fff550858748146544cb
> 
> 🕸Fediverse: @gigavinyl at catgirl.science 
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list