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

* Re: Fix replying to weird Re: variants
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Per Abrahamsen @ 2001-10-19  4:53 UTC (permalink / raw)


Matt Armstrong <matt@lickey.com> writes:

> when replying to people that generate subjects like "Re[2]: whatever".

Which client is that?  I know nn did it, but that was a decade ago and
was quickly fixed after massive flames.



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

* Re: Fix replying to weird Re: variants
  2001-10-19  4:53 ` Per Abrahamsen
@ 2001-10-19  8:07   ` Frank Schmitt
  2001-10-19  8:39     ` Per Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Schmitt @ 2001-10-19  8:07 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:
 
>>when replying to people that generate subjects like "Re[2]: whatever".
>
>Which client is that?  I know nn did it, but that was a decade ago and
>was quickly fixed after massive flames.

For example the windows MUA "The Bat!". (But it's a great program
nevertheless and one can turn it off.)

-- 
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
19. Dezember 2001



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

* Re: Fix replying to weird Re: variants
  2001-10-19  8:07   ` Frank Schmitt
@ 2001-10-19  8:39     ` Per Abrahamsen
  2001-10-19 15:17       ` Henrik Enberg
  2001-10-19 15:56       ` Matt Armstrong
  0 siblings, 2 replies; 7+ messages in thread
From: Per Abrahamsen @ 2001-10-19  8:39 UTC (permalink / raw)


Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:

> Per Abrahamsen <abraham@dina.kvl.dk> writes:
>  
>>>when replying to people that generate subjects like "Re[2]: whatever".
>>
>>Which client is that?  I know nn did it, but that was a decade ago and
>>was quickly fixed after massive flames.
> 
> For example the windows MUA "The Bat!". (But it's a great program
> nevertheless and one can turn it off.)

nn was great too, that is no excuse for behaving badly by default.
Please flame the flying rodent!

Lars rejected patches to make Gnus fix the MSOE brain dead "Re: "
localization for political reasons, I guess these reasons would also
apply to smaller applications.



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

* Re: Fix replying to weird Re: variants
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Henrik Enberg @ 2001-10-19 15:17 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:
> 
>> Per Abrahamsen <abraham@dina.kvl.dk> writes:
>>  
>>>>when replying to people that generate subjects like "Re[2]: whatever".
>>>
>>>Which client is that?  I know nn did it, but that was a decade ago and
>>>was quickly fixed after massive flames.
>> 
>> For example the windows MUA "The Bat!". (But it's a great program
>> nevertheless and one can turn it off.)
> 
> nn was great too, that is no excuse for behaving badly by default.
> Please flame the flying rodent!
> 
> Lars rejected patches to make Gnus fix the MSOE brain dead "Re: "
> localization for political reasons, I guess these reasons would also
> apply to smaller applications.

Bug Gnus _does_ fix such stupidities when replying.  If you use the
right regexp of course.

'(message-subject-re-regexp "^\\(\\(\\([Rr][Ee]\\|[Ss][Vv]\\|[Aa][Ww]\\): *\\)+\\)")

Henrik
-- 
I'm CONTROLLED by the CIA!!  EVERYONE is controlled by the CIA!!




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

* Re: Fix replying to weird Re: variants
  2001-10-19  8:39     ` Per Abrahamsen
  2001-10-19 15:17       ` Henrik Enberg
@ 2001-10-19 15:56       ` Matt Armstrong
  1 sibling, 0 replies; 7+ messages in thread
From: Matt Armstrong @ 2001-10-19 15:56 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:
> 
>> Per Abrahamsen <abraham@dina.kvl.dk> writes:
>>  
>>>>when replying to people that generate subjects like "Re[2]: whatever".
>>>
>>>Which client is that?  I know nn did it, but that was a decade ago and
>>>was quickly fixed after massive flames.
>> 
>> For example the windows MUA "The Bat!". (But it's a great program
>> nevertheless and one can turn it off.)

And "Becky" which is a popular Japanese mailer.  In both The Bat! and
Becky, the mis-feature is easily turned off.

> nn was great too, that is no excuse for behaving badly by default.
> Please flame the flying rodent!

I now have procmail bounce such mails from "The Bat!" and "Becky"
pointing to a URL describing how to disable the behavior.

> Lars rejected patches to make Gnus fix the MSOE brain dead "Re: "
> localization for political reasons, I guess these reasons would also
> apply to smaller applications.

That's silly -- the whole point of Gnus is that it is overly
featureful to the point of actually being useful.  :-)

By that same logic, gnus-simplify-subject in gnus-sum.el should not
recognize these weird Re: variants.


-- 
matt



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

* Re: Fix replying to weird Re: variants
  2001-10-19 15:17       ` Henrik Enberg
@ 2001-12-29 23:45         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-29 23:45 UTC (permalink / raw)


Henrik Enberg <henrik@enberg.org> writes:

> Bug Gnus _does_ fix such stupidities when replying.  If you use the
> right regexp of course.
>
> '(message-subject-re-regexp "^\\(\\(\\([Rr][Ee]\\|[Ss][Vv]\\|[Aa][Ww]\\): *\\)+\\)")

I've included this as an example in the manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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