From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38448 Path: main.gmane.org!not-for-mail From: Michael.Cook@cisco.com Newsgroups: gmane.emacs.gnus.general Subject: Re: message-subject-re Date: Thu, 30 Aug 2001 12:32:32 -0400 Sender: zzz@cisco.com Message-ID: References: <877kvm4e6k.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035174309 22495 80.91.224.250 (21 Oct 2002 04:25:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:25:09 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 29518 invoked from network); 30 Aug 2001 16:33:04 -0000 Original-Received: from frampton.cisco.com (161.44.253.15) by gnus.org with SMTP; 30 Aug 2001 16:33:04 -0000 Original-Received: from zzz.cisco.com (zzz.cisco.com [10.89.5.93]) by frampton.cisco.com (8.8.8/2.6/Cisco List Logging/8.8.8) with ESMTP id MAA15370 for ; Thu, 30 Aug 2001 12:32:32 -0400 (EDT) Original-Received: (from zzz@localhost) by zzz.cisco.com (8.9.3/8.9.3) id MAA02343; Thu, 30 Aug 2001 12:32:32 -0400 X-Authentication-Warning: zzz.cisco.com: zzz set sender to zzz@zzz.cisco.com using -f Original-To: ding@gnus.org In-Reply-To: (prj@po.cwru.edu's message of "Thu, 30 Aug 2001 00:44:35 -0400") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Original-Lines: 25 Xref: main.gmane.org gmane.emacs.gnus.general:38448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38448 --=-=-= 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=message-subject-inhibit-re.patch --- 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)) --=-=-=--