From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74326 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] message-goto-body after <#secure Date: Wed, 24 Nov 2010 22:20:08 +0100 Message-ID: <87r5ea2zcn.fsf@keller.adm.naquadah.org> References: <87fwurlpyw.fsf@kotik.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290633651 31662 80.91.229.12 (24 Nov 2010 21:20:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 21:20:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22691@lists.math.uh.edu Wed Nov 24 22:20:47 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLMli-0007Jv-UH for ding-account@gmane.org; Wed, 24 Nov 2010 22:20:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PLMlg-000327-OF; Wed, 24 Nov 2010 15:20:44 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PLMlf-00031t-KE for ding@lists.math.uh.edu; Wed, 24 Nov 2010 15:20:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PLMle-0006Kn-Nj for ding@lists.math.uh.edu; Wed, 24 Nov 2010 15:20:43 -0600 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PLMld-0003Nu-00 for ; Wed, 24 Nov 2010 22:20:41 +0100 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 7B9495C1BB; Wed, 24 Nov 2010 22:20:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 88A125C1BB for ; Wed, 24 Nov 2010 22:20:09 +0100 (CET) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1PLMl6-0002mG-W7 for ding@gnus.org; Wed, 24 Nov 2010 22:20:09 +0100 Mail-Followup-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 24 Nov 2010 21:53:05 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-MIME-Error: demime acl condition: quoted-printable encoding contains illegal character X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74326 Archived-At: <#secure method=pgpmime mode=sign> On Wed, Nov 24 2010, Lars Magne Ingebrigtsen wrote: > Actually, I think this is probably the wrong way to do it. If you want > to insert <#secure automatically in all your message buffers, you should > do it after everything is inserted, and not before yanking. I use this with success: (defun jd:gnus-secure-message-sign () (when (or (equal gnus-newsgroup-name "") (equal gnus-newsgroup-name nil) (not (string-match-p "Somestuff" gnus-newsgroup-name))) (mml-secure-message-sign-pgpmime))) ;; plug this into message-setup-hook (add-hook 'gnus-message-setup-hook 'jd:gnus-secure-message-sign) FWIW. --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info