From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81600 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.gnus.user,gmane.emacs.gnus.general Subject: Re: Control body encoding of Gcc copies Date: Wed, 14 Mar 2012 18:31:18 +0100 Message-ID: <20120314173133.869FF1FE11@saturn.ch.ristopher.com> References: <20120311222924.9C0AC1FDFB@saturn.ch.ristopher.com> <20120313180130.D4FA51FE11@saturn.ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1331746334 5034 80.91.229.3 (14 Mar 2012 17:32:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 17:32:14 +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 Wed Mar 14 18:32:12 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 1S7s3W-0004Gx-UB for gegu-info-gnus-english@m.gmane.org; Wed, 14 Mar 2012 18:32:11 +0100 Original-Received: from localhost ([::1]:52469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7s3W-00088F-6m for gegu-info-gnus-english@m.gmane.org; Wed, 14 Mar 2012 13:32:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7s36-00084W-DC for info-gnus-english@gnu.org; Wed, 14 Mar 2012 13:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7s2z-0005ua-PU for info-gnus-english@gnu.org; Wed, 14 Mar 2012 13:31:43 -0400 Original-Received: from ristopher.com ([146.185.21.93]:41766 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7s2z-0005uL-9A for info-gnus-english@gnu.org; Wed, 14 Mar 2012 13:31:37 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 869FF1FE11; Wed, 14 Mar 2012 17:31:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1331746293; bh=HsX1oWSyq6YiLBYcCBZL77E3/vpiFkK5qNXEd41e/JA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:MIME-Version: Content-Type:Message-Id; b=xUzZIkuWe0w1sbKi0/qPdA9YAbuYPRKcynXFjOMYENtKHimrXgfrojSeCM+lYU67r ABiV8723brHBvcYH9ggPB8GiAhWK00O89oxJY4IEIf8Z1XBWEVtvQArGndVAM9XiKg zcIxyjP83WpDye2HhgZdJkg19c2BpBOZ02jwByEA= In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 14 Mar 2012 15:34:28 +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:15250 gmane.emacs.gnus.general:81600 Archived-At: --=-=-= Content-Type: text/plain Lars Magne Ingebrigtsen writes: Hi Lars, > Christopher Schmidt writes: > >> Is this one OK? > > Looks good to me. Could you also submit the changes to the gnus.texi > file? --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=gnus.diff Content-Transfer-Encoding: quoted-printable diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e50751..611779c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-03-14 Christopher Schmidt + + * gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-ho= ok + and gnus-gcc-post-body-encode-hook. + 2012-03-10 Lars Magne Ingebrigtsen =20 * gnus-group.el (gnus-group-expire-articles-1): Don't try to expire diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el index 9411f46..58f962e 100644 --- a/lisp/gnus-msg.el +++ b/lisp/gnus-msg.el @@ -313,6 +313,22 @@ If nil, the address field will always be empty after i= nvoking :group 'gnus-message :type 'boolean) =20 +(defcustom gnus-gcc-pre-body-encode-hook nil + "A hook called before encoding the body of the Gcc copy of a message. +The current buffer (when the hook is run) contains the message +including the message header. 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. +The current buffer (when the hook is run) contains the message +including the message header. 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) =20 ;;; Internal variables. @@ -1643,7 +1659,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) diff --git a/texi/ChangeLog b/texi/ChangeLog index df08f5a..be92527 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,8 @@ +2012-03-14 Christopher Schmidt + + * gnus.texi (Archived Messages): Mention gnus-gcc-pre-body-encode-hook + and gnus-gcc-post-body-encode-hook.=20 + 2012-02-28 Glenn Morris =20 * gnus-faq.texi, gnus-news.texi, gnus.texi: diff --git a/texi/gnus.texi b/texi/gnus.texi index 2520e63..0c40d56 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -12675,6 +12675,19 @@ this is @code{no-gcc-self}, that is the default, r= esent messages will be @code{Gcc} copied to groups that existing @code{Gcc} header specifies, except for the current group. =20 +@item gnus-gcc-pre-body-encode-hook +@vindex gnus-gcc-pre-body-encode-hook +@itemx gnus-gcc-post-body-encode-hook +@vindex gnus-gcc-post-body-encode-hook + +These hooks are run before/after encoding the message body of the Gcc +copy of a sent message. The current buffer (when the hook is run) +contains the message including the message header. Changes made to +the message will only affect the Gcc copy, but not the original +message. You can use these hooks to edit the copy (and influence +subsequent transformations), e.g. remove MML secure tags +(@pxref{Signing and encrypting}). + @end table =20 =20 @@ -28329,6 +28342,25 @@ New features in No Gnus: I'm sure there will be lots of text here. It's really spelled =E7=9C=9F Gnus. =20 +New features in Ma Gnus: + +@itemize @bullet + +@item Changes in Message mode and related Gnus features +@c **************************************************** + +@itemize @bullet + +@item +The new hooks @code{gnus-gcc-pre-body-encode-hook} and +@code{gnus-gcc-post-body-encode-hook} are run before/after encoding +the message body of the Gcc copy of a sent message. See +@xref{Archived Messages}. + +@end itemize + +@end itemize + @iftex =20 @page --=-=-= Content-Type: text/plain > And do you have FSF copyright assignment papers on file? I signed FSF papers for EMACS (RT 720243). Does this cover Gnus? 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 --=-=-=--