From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81566 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.gnus.user,gmane.emacs.gnus.general Subject: Control body encoding of Gcc copies (was: Don't encrypt Gcc'ed messages) Date: Tue, 13 Mar 2012 19:01:14 +0100 Message-ID: <20120313180130.D4FA51FE11@saturn.ch.ristopher.com> References: <20120311222924.9C0AC1FDFB@saturn.ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1331661729 11495 80.91.229.3 (13 Mar 2012 18:02:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2012 18:02:09 +0000 (UTC) Cc: info-gnus-english@gnu.org To: ding@gnus.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Mar 13 19:02:08 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7W2x-0003pw-TM for gegu-info-gnus-english@m.gmane.org; Tue, 13 Mar 2012 19:02:08 +0100 Original-Received: from localhost ([::1]:55732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7W2x-0002z0-9U for gegu-info-gnus-english@m.gmane.org; Tue, 13 Mar 2012 14:02:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7W2u-0002tq-Dn for info-gnus-english@gnu.org; Tue, 13 Mar 2012 14:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7W2R-0006Wx-SR for info-gnus-english@gnu.org; Tue, 13 Mar 2012 14:02:03 -0400 Original-Received: from ristopher.com ([146.185.21.93]:35536 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7W2R-0006WR-F4 for info-gnus-english@gnu.org; Tue, 13 Mar 2012 14:01:35 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id D4FA51FE11; Tue, 13 Mar 2012 18:01:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1331661690; bh=a43TK6q/QjfjJU11DHbqji7yMQhKCA2DAvTJUOkEBRo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:MIME-Version: Content-Type:Message-Id; b=ereuEB7sQNi7/8fNYHmue9ou35Z3wJ9SXmIFX2EVgAU/iG6aMRGAvgnv1I+nuBjFd +dZQtaOaSTFc1MK5Ndx4NXrTYh5XRpqlQE2J+OyC57+5Vs0ZINvWKQTY+H08vbzfxW +1h34Doix99NXWT/4feS/vhCEIYoAfh/Ya/qCac8= In-Reply-To: <20120311222924.9C0AC1FDFB@saturn.ch.ristopher.com> (Christopher Schmidt's message of "Sun, 11 Mar 2012 23:29:11 +0100") Mail-Followup-To: ding@gnus.org, info-gnus-english@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 146.185.21.93 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15248 gmane.emacs.gnus.general:81566 Archived-At: --=-=-= Content-Type: text/plain Christopher Schmidt writes: > is there any way to get Gnus to ignore mml encrypt tags when storing > sent mail in a Gcc group? (I looked in gnus-inews-do-gcc but it looks > like there is no customisation point or handy hook that I could use to > achieve that.) Here is a patch for Gnus master that adds more flexibility to gnus-inews-do-gcc. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=gnus-msg.diff diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el index 9411f46..d158600 100644 --- a/lisp/gnus-msg.el +++ b/lisp/gnus-msg.el @@ -313,6 +313,20 @@ If nil, the address field will always be empty after invoking :group 'gnus-message :type 'boolean) +(defcustom gnus-gcc-pre-body-encode-hook nil + "A hook called before encoding the body of the Gcc copy of a message. +Changes made to the message will only affect the Gcc copy, but +not the original message." + :group 'gnus-message + :type 'hook) + +(defcustom gnus-gcc-post-body-encode-hook nil + "A hook called after encoding the body of the Gcc copy of a message. +Changes made to the message will only affect the Gcc copy, but +not the original message." + :group 'gnus-message + :type 'hook) + (autoload 'gnus-message-citation-mode "gnus-cite" nil t) ;;; Internal variables. @@ -1643,7 +1657,9 @@ this is a reply." (nnheader-set-temp-buffer " *acc*") (setq message-options (with-current-buffer cur message-options)) (insert-buffer-substring cur) + (run-hooks 'gnus-gcc-pre-body-encode-hook) (message-encode-message-body) + (run-hooks 'gnus-gcc-post-body-encode-hook) (save-restriction (message-narrow-to-headers) (let* ((mail-parse-charset message-default-charset) --=-=-= Content-Type: text/plain Is this one OK? Christopher --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english --=-=-=--