From: "Peter Münster" <pmlists@free.fr>
To: ding@gnus.org
Subject: Re: Automatic GPG signing
Date: Fri, 13 Jun 2014 13:32:16 +0200 [thread overview]
Message-ID: <87wqclkptr.fsf@micropit.roche-blanche.homenet.org> (raw)
In-Reply-To: <8761k5m5ga.fsf@micropit.roche-blanche.homenet.org>
On Fri, Jun 13 2014, Peter Münster wrote:
> (defun pm/message-send ()
> (unless (message-field-value gnus-delay-header) ; see http://article.gmane.org/gmane.emacs.gnus.general/84598
> (unless (string-equal pm/role "list") ; no gpg stuff in lists
> (if (jl-epg-check-unique-keys (jl-mail-recipients))
> (mml-secure-message-sign-encrypt)
> (mml-secure-message-sign)))
> (or (pm/spell) (keyboard-quit)))) ; see http://article.gmane.org/gmane.emacs.gnus.general/84461
>
> (add-hook 'message-send-hook 'pm/message-send)
Sorry, for this to work, I had to remove some lines from jl-encrypt.el:
--8<---------------cut here---------------start------------->8---
$ diff -u jl-encrypt.el~ jl-encrypt.el
--- jl-encrypt.el~ 2014-05-26 16:32:09.973674503 +0200
+++ jl-encrypt.el 2014-05-26 20:12:24.641922293 +0200
@@ -203,15 +203,12 @@
;; (all necessary public keys are available).
;; In the past, this could have prevented me from sending plaintext e-mails
;; that should have been sent encrypted.
-(define-key message-mode-map (kbd "C-c C-c") 'jl-message-send-and-exit)
-(define-key message-mode-map (kbd "C-c C-s") 'jl-message-send)
;; Make gnus insert MML encryption tags if keys for all recipients are
;; available. Thus, if you reply (or wide reply) to a message or edit
;; a saved draft, then MML encryption tags will be inserted right away.
;; Moreover, if jl-encrypt-insert-signature is always, an MML signature
;; tag will be added immediately.
-(add-hook 'gnus-message-setup-hook 'jl-encrypt-if-possible)
(defgroup jl-encrypt nil
"Customization options for jl-encrypt.el.")
--8<---------------cut here---------------end--------------->8---
--
Peter
next prev parent reply other threads:[~2014-06-13 11:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 19:11 Matt Ford
2014-06-12 19:18 ` Gijs Hillenius
2014-06-13 9:47 ` Matt Ford
2014-06-13 11:09 ` Peter Münster
2014-06-13 11:32 ` Peter Münster [this message]
2014-06-13 13:54 ` Matt Ford
2014-06-13 14:15 ` Peter Münster
2014-06-13 13:05 ` Andreas Schwab
2014-06-13 14:04 ` Peter Münster
2014-06-13 14:30 ` Matt Ford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqclkptr.fsf@micropit.roche-blanche.homenet.org \
--to=pmlists@free.fr \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).