From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47925 Path: main.gmane.org!not-for-mail From: Nicolas Kowalski Newsgroups: gmane.emacs.gnus.general Subject: Re: PGP/MIME signing messages by default Date: Wed, 27 Nov 2002 09:11:59 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86n0nvg13y.fsf@tea.thpoon.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038384659 11793 80.91.224.249 (27 Nov 2002 08:10:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 08:10:59 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GxHd-000342-00 for ; Wed, 27 Nov 2002 09:10:57 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18GxJF-0003uA-00; Wed, 27 Nov 2002 02:12:37 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 27 Nov 2002 02:13:24 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@[209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id CAA24294 for ; Wed, 27 Nov 2002 02:13:10 -0600 (CST) Original-Received: (qmail 7817 invoked by alias); 27 Nov 2002 08:12:08 -0000 Original-Received: (qmail 7806 invoked from network); 27 Nov 2002 08:12:05 -0000 Original-Received: from imag.imag.fr (129.88.30.1) by gnus.org with SMTP; 27 Nov 2002 08:12:05 -0000 Original-Received: from pave.imag.fr (pave.imag.fr [129.88.43.12]) by imag.imag.fr (8.11.6/8.11.6) with ESMTP id gAR8C1b00604 for ; Wed, 27 Nov 2002 09:12:01 +0100 (MET) Original-Received: from astazou ([129.88.43.102] helo=astazou.imag.fr.imag.fr ident=kowalski) by pave.imag.fr with esmtp (Exim 4.10) id 18GxIf-000PfS-00 for ding@gnus.org; Wed, 27 Nov 2002 09:12:01 +0100 Original-To: ding@gnus.org X-Face: #v^9{p"~.e3TDs~r\ (Arcady Genkin's message of "Tue, 26 Nov 2002 22:09:21 -0500") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Common Lisp, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47925 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47925 Arcady Genkin 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