From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83761 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.gnus.general Subject: Re: Encryption vs. Gcc Date: Fri, 6 Sep 2013 14:10:11 +0100 (BST) Message-ID: <8738piccyu@ch.ristopher.com> References: <87fvtku3u3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378473025 23477 80.91.229.3 (6 Sep 2013 13:10:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 13:10:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32017@lists.math.uh.edu Fri Sep 06 15:10:28 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VHvnv-0005hH-RG for ding-account@gmane.org; Fri, 06 Sep 2013 15:10:28 +0200 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 1VHvnn-0001Sv-Ji; Fri, 06 Sep 2013 08:10:19 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1VHvnm-0001Sh-Ds for ding@lists.math.uh.edu; Fri, 06 Sep 2013 08:10:18 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1VHvnk-0000sv-OX for ding@lists.math.uh.edu; Fri, 06 Sep 2013 08:10:18 -0500 Original-Received: from ristopher.com ([146.185.21.93] helo=saturn.ch.ristopher.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1VHvni-0001x4-VO for ding@gnus.org; Fri, 06 Sep 2013 15:10:15 +0200 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 920E220E63; Fri, 6 Sep 2013 14:10:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1378473011; bh=36zaGcmy2wNWDCY/VXnyvmc6v8Yn/oDnzuyP7NR3rLk=; h=From:To:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:Date; b=07A+Y1Vn86E6CyT0b8ePXPygN8vF4tAD3yBFdq834MNmRahFEOrIXdnT4OcVNIT0+ KpLMsHHyiq8eVIGAdawNOLzn+/d8OJXs7yu4y4jGaS5z4cGJAGaF5wF6fNv21R0YHf haNuvfNgtM3gWtneTuBN+CVbGUhkreuChsyIbFSU= In-Reply-To: <87fvtku3u3.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 04 Sep 2013 15:13:56 +0200") Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.7 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83761 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > However, that doesn=E2=80=99t work, apparently because when the hook is c= alled > the buffer that is current is not the message (see > =E2=80=98gnus-inews-do-gcc=E2=80=99.) (ah gnus-gcc-pre-body-encode-hook (goto-char (message-goto-body)) (while (re-search-forward "^<#\\(secure .*mode=3D\\(sign\\)?encrypt= .*>\\)$" nil t) (replace-match "<|rms\\1"))) (ah gnus-gcc-post-body-encode-hook (goto-char (message-goto-body)) (while (re-search-forward "^<|rms\\(.*\\)$" nil t) (replace-match "<#\\1")))) Christopher