From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Removing list identifiers in rmail (was: Changes to emacs/lisp/mail/rmail.el) Date: Tue, 10 Jan 2006 14:55:58 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136911957 5535 80.91.229.2 (10 Jan 2006 16:52:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 16:52:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 10 17:52:33 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwMiR-0003vR-Rc for ged-emacs-devel@m.gmane.org; Tue, 10 Jan 2006 17:51:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwMkR-00037a-43 for ged-emacs-devel@m.gmane.org; Tue, 10 Jan 2006 11:53:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwKCd-0006po-Na for emacs-devel@gnu.org; Tue, 10 Jan 2006 09:10:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwK9N-0005el-05 for emacs-devel@gnu.org; Tue, 10 Jan 2006 09:07:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwK0k-0003sg-DP for emacs-devel@gnu.org; Tue, 10 Jan 2006 08:58:06 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EwK3B-000052-ID; Tue, 10 Jan 2006 09:00:38 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k0ADtwaS018461; Tue, 10 Jan 2006 14:55:58 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 346F510F14; Tue, 10 Jan 2006 14:55:58 +0100 (CET) Original-To: Alex Schroeder Mail-Followup-To: Alex Schroeder , emacs-devel@gnu.org X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48903 Archived-At: Alex Schroeder on emacs-diffs: > --- emacs/lisp/mail/rmail.el:1.417 Sun Jan 8 15:18:55 2006 > +++ emacs/lisp/mail/rmail.el Sun Jan 8 23:47:07 2006 > @@ -447,8 +447,10 @@ > "String to prepend to Subject line when replying to a message.") > > ;; Some mailers use "Re(2):" or "Re^2:" or "Re: Re:" or "Re[2]:". > -;; This pattern should catch all the common variants. > -(defvar rmail-reply-regexp "\\`\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" > +;; This pattern should catch all the common variants. The pattern > +;; also ignores mailing list identifiers sometimes added in square > +;; brackets at the beginning of subject lines. > +(defvar rmail-reply-regexp "\\`\\(\\[.+?\\] \\)?\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" > "Regexp to delete from Subject line before inserting `rmail-reply-prefix'.") If this also removes tags in square brackets (like in "[PCL-CVS] foo", "[patch] bar", ...), it is not a good idea, IMHO. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/