From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39432 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.gnus.general Subject: Fix replying to weird Re: variants Date: Thu, 18 Oct 2001 21:50:59 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: <873d4gmgnw.fsf@squeaker.lickey.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175137 27801 80.91.224.250 (21 Oct 2002 04:38:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:57 +0000 (UTC) Return-Path: Original-Received: (qmail 18082 invoked from network); 19 Oct 2001 03:52:13 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 19 Oct 2001 03:52:13 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uQh3-0007fO-00; Thu, 18 Oct 2001 22:51:33 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 18 Oct 2001 22:51:11 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id WAA10922 for ; Thu, 18 Oct 2001 22:51:01 -0500 (CDT) Original-Received: (qmail 18060 invoked by alias); 19 Oct 2001 03:51:17 -0000 Original-Received: (qmail 18055 invoked from network); 19 Oct 2001 03:51:16 -0000 Original-Received: from hank.lickey.com (64.81.100.235) by gnus.org with SMTP; 19 Oct 2001 03:51:16 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id C780CEDA7 for ; Thu, 18 Oct 2001 21:51:01 -0600 (MDT) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id CD643BD4F for ; Thu, 18 Oct 2001 21:51:00 -0600 (MDT) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id E4AE2BD4E; Thu, 18 Oct 2001 21:50:59 -0600 (MDT) Original-To: ding@gnus.org Original-Lines: 33 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 X-Virus-Scanned: by AMaViS snapshot-20010714 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39432 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)