From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82468 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Disable pgp signatures for Gcc copy Date: Tue, 06 Nov 2012 08:31:37 +0900 Organization: Emacsen advocacy group Message-ID: References: <87a9uwt8pc.fsf@toke.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352158333 16937 80.91.229.3 (5 Nov 2012 23:32:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 23:32:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30734@lists.math.uh.edu Tue Nov 06 00:32:23 2012 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 1TVW9W-0007DI-BS for ding-account@gmane.org; Tue, 06 Nov 2012 00:32:22 +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 1TVW96-0005LW-4L; Mon, 05 Nov 2012 17:31:56 -0600 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 1TVW94-0005LN-MI for ding@lists.math.uh.edu; Mon, 05 Nov 2012 17:31:54 -0600 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 1TVW92-0001XO-O4 for ding@lists.math.uh.edu; Mon, 05 Nov 2012 17:31:54 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TVW90-0002Zc-3P for ding@gnus.org; Tue, 06 Nov 2012 00:31:50 +0100 Original-Received: from localhost ([127.0.0.1]:43441) by orlando.hostforweb.net with smtp (Exim 4.77) (envelope-from ) id 1TVW8s-0006S0-Gz for ding@gnus.org; Mon, 05 Nov 2012 17:31:42 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130006 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.6) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:lfGTw9+eK/637KnVoSYlaL0ag7I= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82468 Archived-At: Toke H=F8iland-J=F8rgensen wrote: > So my question is, is there a way to disable signatures for Gcc copies > of mails (similar to Mutt's fcc_clear option)? That will be just one of the purposes of to use `gnus-gcc-pre-body-encode-hook', that runs before archiving a message copy as Gcc. Here's what I tried: (add-hook 'gnus-gcc-pre-body-encode-hook (lambda () (message-goto-body) (while (re-search-forward "^<#secure\\( [^\n >]+\\)* mode=3Dsign\\( [^\n >]+\\)*>\n" nil t) (delete-region (match-beginning 0) (match-end 0)))))