Gnus development mailing list
 help / color / mirror / Atom feed
* Fix replying to weird Re: variants
@ 2001-10-19  3:50 Matt Armstrong
  2001-10-19  4:53 ` Per Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Armstrong @ 2001-10-19  3:50 UTC (permalink / 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)



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-12-29 23:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-19  3:50 Fix replying to weird Re: variants Matt Armstrong
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

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).