From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51533 Path: main.gmane.org!not-for-mail From: Kirk Strauser Newsgroups: gmane.emacs.gnus.general Subject: Re: Lambda functions in group parameters? Date: Wed, 16 Apr 2003 10:00:41 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: <87llyah4h2.fsf@pooh.honeypot.net> References: <87y92bgmti.fsf@pooh.honeypot.net> <87ptnn6p0b.fsf@mulligatwani.msrl.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: main.gmane.org 1050505455 23068 80.91.224.249 (16 Apr 2003 15:04:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2003 15:04:15 +0000 (UTC) Cc: ding@hpc.uh.edu Original-X-From: ding-owner+M77@lists.math.uh.edu Wed Apr 16 17:04:14 2003 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 195oOY-0005jQ-00 for ; Wed, 16 Apr 2003 17:00:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 195oPB-000112-00; Wed, 16 Apr 2003 10:00:57 -0500 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=root) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 195oP7-00010x-00 for ding@lists.math.uh.edu; Wed, 16 Apr 2003 10:00:53 -0500 Original-Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA27954 for ; Wed, 16 Apr 2003 10:02:00 -0500 (CDT) Original-Received: from pooh.honeypot.net.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.8/8.12.7) with ESMTP id h3GF0jbG096053; Wed, 16 Apr 2003 10:00:49 -0500 (CDT) (envelope-from kirk@strauser.com) Original-To: Michael Shields In-Reply-To: <87ptnn6p0b.fsf@mulligatwani.msrl.com> (Michael Shields's message of "Wed, 16 Apr 2003 04:32:36 +0000") Original-Lines: 23 X-Mailer: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51533 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-04-16T04:32:36Z, Michael Shields writes: >> I'm trying to get Gnus to use per-group values for >> gnus-message-setup-hook (mainly so that I can use the >> mml-secure-message-sign-pgpmime function to sign email, and the >> mml-secure-message-sign-pgp function to sign news). > Why not: > > (add-hook 'gnus-message-setup-hook > (lambda () > (if (message-news-p) > (mml-secure-message-sign-pgp) > (mml-secure-message-sign-pgpmime)))) The reason is that I have some groups where I never sign my email, such as those for my clients who just can't be made to understand that PGP is not a virus (well, in the standard sense :) ). My current setup lets me set a default method of signing, then configure a different method (or no method at all) on a per-topic or per-group basis. --=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+nXAc5sRg+Y0CpvERAg1cAJ4xfIZuJrLmZho58fDPWwahZLSl6wCeL13X tSP6Pr2lyglp7+7x2LDO7YQ= =ajsV -----END PGP SIGNATURE----- --=-=-=--