From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65938 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: keep Gcc: field in buffer after sending Date: Tue, 11 Dec 2007 10:31:28 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <864pepjiqn.fsf@lifelogs.com> References: <874pex4ts6.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197390745 21681 80.91.229.12 (11 Dec 2007 16:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2007 16:32:25 +0000 (UTC) Cc: ding@gnus.org To: jidanni@jidanni.org Original-X-From: ding-owner+M14432@lists.math.uh.edu Tue Dec 11 17:32:35 2007 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.50) id 1J2821-0004Yn-QS for ding-account@gmane.org; Tue, 11 Dec 2007 17:32:30 +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 1J281I-0003SM-AL; Tue, 11 Dec 2007 10:31: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 1J281H-0003S7-2N for ding@lists.math.uh.edu; Tue, 11 Dec 2007 10:31:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J2819-0005J1-VO for ding@lists.math.uh.edu; Tue, 11 Dec 2007 10:31:42 -0600 Original-Received: from blockstar.com ([170.224.69.95] helo=mail.blockstar.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J2816-0002YR-00 for ; Tue, 11 Dec 2007 17:31:33 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 7A5543F869F; Tue, 11 Dec 2007 08:58:07 -0800 (PST) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:071211:ding@gnus.org::6FpfhJmc4R1C/Oku:00001MNb X-Hashcash: 1:20:071211:jidanni@jidanni.org::Ga0fH9D47gDcOBYP:0000000000000000000000000000000000000000008Y/Y Mail-Followup-To: jidanni@jidanni.org, ding@gnus.org In-Reply-To: <874pex4ts6.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 05 Dec 2007 13:03:53 +0800") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65938 Archived-At: On Wed, 05 Dec 2007 13:03:53 +0800 jidanni@jidanni.org wrote: j> Gentlemen, I note the Gcc: field disappears from the buffer after a j> message is sent. j> But often I go back to that buffer and make some alterations and send j> another similar message, only later to discover a copy was not saved j> on disk. j> There ought to be a variable to stop this senseless abduction of the j> Gcc: field upon message-send-and-exit, etc. I think this is useful. Try the following simple patch, setting gnus-mgs-keep-gcc-header to t. Note it will leave the Gcc header in outgoing messages, which is not an optimal solution, but doing it right would require a lot more changes. Ted Index: gnus-msg.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-msg.el,v retrieving revision 7.63 diff -u -r7.63 gnus-msg.el --- gnus-msg.el 25 Nov 2007 18:25:11 -0000 7.63 +++ gnus-msg.el 11 Dec 2007 16:28:56 -0000 @@ -86,6 +86,11 @@ :group 'gnus-message :type 'boolean) +(defcustom gnus-msg-keep-gcc-header nil + "*If non-nil, keep the Gcc header in messages." + :group 'gnus-message + :type 'boolean) + (defcustom gnus-crosspost-complaint "Hi, @@ -1630,7 +1635,8 @@ groups group method group-art mml-externalize-attachments) (when gcc - (message-remove-header "gcc") + (unless gnus-msg-keep-gcc-header + (message-remove-header "gcc")) (widen) (setq groups (message-unquote-tokens (message-tokenize-header gcc " ,")))