Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: jidanni@jidanni.org
Cc: ding@gnus.org
Subject: Re: keep Gcc: field in buffer after sending
Date: Tue, 11 Dec 2007 10:31:28 -0600	[thread overview]
Message-ID: <864pepjiqn.fsf@lifelogs.com> (raw)
In-Reply-To: <874pex4ts6.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 05 Dec 2007 13:03:53 +0800")

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 " ,")))



  reply	other threads:[~2007-12-11 16:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-05  5:03 jidanni
2007-12-11 16:31 ` Ted Zlatanov [this message]
2007-12-11 19:02   ` jidanni
2007-12-11 23:01     ` Ted Zlatanov
2007-12-12  8:27       ` jidanni
2007-12-12 12:45         ` Ted Zlatanov
2007-12-12 13:16           ` Miles Bader
2007-12-12 13:26             ` Ted Zlatanov
2007-12-12 19:44               ` Reiner Steib
2007-12-12 20:46                 ` Ted Zlatanov
2007-12-11 22:08   ` Reiner Steib
2007-12-11 23:10     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864pepjiqn.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).