Gnus development mailing list
 help / color / mirror / Atom feed
From: Nicolas Kowalski <Nicolas.Kowalski@imag.fr>
Subject: Re: PGP/MIME signing messages by default
Date: Wed, 27 Nov 2002 09:11:59 +0100	[thread overview]
Message-ID: <vqon0nvqvn4.fsf@astazou.imag.fr> (raw)
In-Reply-To: <86n0nvg13y.fsf@tea.thpoon.com> (Arcady Genkin's message of "Tue, 26 Nov 2002 22:09:21 -0500")

Arcady Genkin <agenkin@thpoon.com> writes:

> How would I turn on automatic GPG signing of outgoing emails?  Could
> someone point me in the right direction?
>
> It would be nice if I could do this based on a group name.  Can this
> be done using gnus-posting-styles, or is that only for the stuff that
> goes into the headers?

I use the following :

;;
;; smime sign/verify messages
;;

;; regexp of groups from which new messages are smime signed by default
(setq my-sign-smime-group-regexp "^mail.work")

;; same, for gpg
(setq my-sign-pgp-group-regexp "^mail.perso")

;; hook to setup message
(defun my-mml-secure-message-sign ()
  (cond 
   ;; smime
   ((string-match my-sign-smime-group-regexp gnus-newsgroup-name)
    (mml-secure-message-sign-smime))

   ;; pgp
   ((string-match my-sign-pgp-group-regexp gnus-newsgroup-name)
    (mml-secure-message-sign-pgp))))

;; plug this into message-setup-hook
(add-hook 'message-setup-hook 'my-mml-secure-message-sign)


Hope this helps.

-- 
Nicolas




  reply	other threads:[~2002-11-27  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-27  3:09 Arcady Genkin
2002-11-27  8:11 ` Nicolas Kowalski [this message]
2002-11-27 16:57   ` Arcady Genkin

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=vqon0nvqvn4.fsf@astazou.imag.fr \
    --to=nicolas.kowalski@imag.fr \
    /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).