Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael.Cook@cisco.com
Subject: Re: message-subject-re
Date: Thu, 30 Aug 2001 12:32:32 -0400	[thread overview]
Message-ID: <g0866b5v78f.fsf@zzz.cisco.com> (raw)
In-Reply-To: <m3g0aai2ba.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Thu, 30 Aug 2001 00:44:35 -0400")

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

prj@po.cwru.edu (Paul Jarc) writes:

> Michael.Cook@cisco.com wrote:
> > after seeing one too many subject lines that looked like
>> 
>>   Subject: Re: Fwd: FW: [list-name] RE: Fwd: foo
>> 
>> it occurred to me that the Re prefix has no real value.
>
> Well, preserving all that without adding another Re: isn't a big
> improvement.  Maybe it would be best to first strip away all Re:s,

ok, but that's a separate issue -- cleaning up subject lines that
have already been mangled.  sure, it'd be nice if gnus could wash
the subject line for display in the summary buffer (can gnus be
configured to do that already?).  but all i really wanted to do when
i started this thread was to keep gnus from inserting "Re:" into the
subject line in new messages i compose.

ok, here's another patch.  this one adds a boolean
`message-subject-inhibit-re'.

m.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: message-subject-inhibit-re.patch --]
[-- Type: text/x-patch, Size: 1354 bytes --]

--- message.el~	Thu Aug 30 12:26:08 2001
+++ message.el	Thu Aug 30 12:29:43 2001
@@ -228,6 +228,11 @@
   :group 'message-various
   :type 'regexp)
 
+(defcustom message-subject-inhibit-re nil
+  "Non-nil means don't insert Re: in the subject line when replying."
+  :group 'message-various
+  :type 'boolean)
+
 ;;;###autoload
 (defcustom message-signature-separator "^-- *$"
   "Regexp matching the signature separator."
@@ -4181,7 +4186,9 @@
 	    subject (or (message-fetch-field "subject") "none"))
       (when gnus-list-identifiers
 	(setq subject (message-strip-list-identifiers subject)))
-      (setq subject (concat "Re: " (message-strip-subject-re subject)))
+      (setq subject (concat (and (not message-subject-inhibit-re)
+				 "Re: ")
+			    (message-strip-subject-re subject)))
 
       (when (and (setq gnus-warning (message-fetch-field "gnus-warning"))
 		 (string-match "<[^>]+>" gnus-warning))
@@ -4257,7 +4264,9 @@
 	(setq distribution nil))
       (if gnus-list-identifiers
 	  (setq subject (message-strip-list-identifiers subject)))
-      (setq subject (concat "Re: " (message-strip-subject-re subject)))
+      (setq subject (concat (and (not message-subject-inhibit-re)
+				 "Re: ")
+			    (message-strip-subject-re subject)))
       (widen))
 
     (message-pop-to-buffer (message-buffer-name "followup" from newsgroups))

  reply	other threads:[~2001-08-30 16:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-29 18:25 message-subject-re Michael.Cook
2001-08-29 18:29 ` message-subject-re Paul Jarc
2001-08-29 18:34   ` message-subject-re Michael.Cook
2001-08-29 18:48     ` message-subject-re Paul Jarc
2001-08-29 19:33       ` message-subject-re Simon Josefsson
2001-08-29 19:40         ` message-subject-re Henrik Enberg
2001-08-29 19:46           ` message-subject-re Paul Jarc
2001-08-29 20:08             ` message-subject-re Michael.Cook
2001-08-29 19:51           ` message-subject-re Frank Schmitt
2001-08-29 20:11             ` message-subject-re Michael.Cook
2001-08-29 23:52               ` message-subject-re Daniel Pittman
2001-08-30  1:50                 ` message-subject-re Michael.Cook
2001-08-30  2:31                   ` message-subject-re Daniel Pittman
2001-08-30  4:44                   ` message-subject-re Paul Jarc
2001-08-30 16:32                     ` Michael.Cook [this message]
2001-08-30 16:39                       ` message-subject-re Jesper Harder
2001-08-30 13:38             ` message-subject-re Per Abrahamsen
2001-08-29 19:43         ` message-subject-re Paul Jarc
2001-08-29 19:51         ` message-subject-re Simon Josefsson
2001-08-30 14:17           ` message-subject-re Per Abrahamsen
2001-08-31 23:26             ` message-subject-re Simon Josefsson
2001-09-01 14:34               ` message-subject-re Per Abrahamsen
2001-08-30  2:16   ` message-subject-re Steve Youngs
2001-09-05 15:02   ` message-change-subject-interactively (was: message-subject-re) Toby Speight
2001-09-05 15:12   ` message-subject-re Colin Marquardt
2001-09-05 16:10     ` message-subject-re Michael.Cook

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=g0866b5v78f.fsf@zzz.cisco.com \
    --to=michael.cook@cisco.com \
    /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).