From: Matt Armstrong <matt@lickey.com>
Subject: Fix replying to weird Re: variants
Date: Thu, 18 Oct 2001 21:50:59 -0600 [thread overview]
Message-ID: <873d4gmgnw.fsf@squeaker.lickey.com> (raw)
It'd be cool if somebody with commit privileges would make this
change.
This patch against current CVS improves message.el's ability to strip
stupid variants of the "Re:" subject prefix. I stole the relevant
portion of the regexp in gnus-simplify-subject that had to deal with
the same issue.
With this patch, you won't end up with a subject of
"Re: Re[2]: whatever"
when replying to people that generate subjects like "Re[2]: whatever".
I know I could just customize this locally, but I'd like to make the
world a better place. :-)
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.130
diff -u -r6.130 message.el
--- lisp/message.el 2001/10/16 12:55:17 6.130
+++ lisp/message.el 2001/10/19 03:41:25
@@ -223,7 +223,7 @@
:group 'message-interface
:type 'regexp)
-(defcustom message-subject-re-regexp "^[ \t]*\\([Rr][Ee]:[ \t]*\\)*[ \t]*"
+(defcustom message-subject-re-regexp "^[ \t]*\\([Rr][Ee]\\([[(^][0-9]+[])]?\\)?:[ \t]*\\)*[ \t]*"
"*Regexp matching \"Re: \" in the subject line."
:group 'message-various
:type 'regexp)
next reply other threads:[~2001-10-19 3:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 3:50 Matt Armstrong [this message]
2001-10-19 4:53 ` Per Abrahamsen
2001-10-19 8:07 ` Frank Schmitt
2001-10-19 8:39 ` Per Abrahamsen
2001-10-19 15:17 ` Henrik Enberg
2001-12-29 23:45 ` Lars Magne Ingebrigtsen
2001-10-19 15:56 ` Matt Armstrong
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=873d4gmgnw.fsf@squeaker.lickey.com \
--to=matt@lickey.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).