From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53000 Path: main.gmane.org!not-for-mail From: Niklas Morberg Newsgroups: gmane.emacs.gnus.general Subject: Re: A RE: SV: AW: "collapser", anyone...? Date: Wed, 04 Jun 2003 09:33:45 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <877k86lmz4.fsf@doohan.bang.priv.no> <87fzmtiirn.fsf@doohan.bang.priv.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1054711939 17662 80.91.224.249 (4 Jun 2003 07:32:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 07:32:19 +0000 (UTC) Original-X-From: ding-owner+M1544@lists.math.uh.edu Wed Jun 04 09:32:16 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NSkp-0004aA-00 for ; Wed, 04 Jun 2003 09:32:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19NSmZ-0002L6-00; Wed, 04 Jun 2003 02:34:03 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19NSmM-0002KS-00 for ding@lists.math.uh.edu; Wed, 04 Jun 2003 02:33:50 -0500 Original-Received: (qmail 10115 invoked by alias); 4 Jun 2003 07:33:49 -0000 Original-Received: (qmail 10110 invoked from network); 4 Jun 2003 07:33:49 -0000 Original-Received: from krynn.se.axis.com (193.13.178.10) by sclp3.sclp.com with SMTP; 4 Jun 2003 07:33:49 -0000 Original-Received: from PCNIKLAS (dh10-13-8-248.se.axis.com [10.13.8.248]) by krynn.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id h547XjD7029654 for ; Wed, 4 Jun 2003 09:33:45 +0200 Original-To: ding@gnus.org In-Reply-To: (Maciej Matysiak's message of "Wed, 04 Jun 2003 03:40:34 +0200") X-Now-Playing: Don McLean: American Pie (1980) - Sister Fatima Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53000 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53000 Maciej Matysiak writes: > the following regexp succeeded removing all the "re" variations from > subject "Re[3]: R=E9f: Odp: SV[6]: Antw: blah", so i assume it works :) > > (setq message-subject-re-regexp > (concat > "^[ \t]*" > "\\(" > "\\(" > "\\([Aa][Nn][Tt][Ww]\\)\\|" ; antw Question: Are the parentheses really necessary? Isn't it enough to say: "[Aa][Nn][Tt][Ww]\\|" ; antw I don't know. > "\\([Aa][Ww]\\)\\|" ; aw > "\\([Ff][Ww]d\\)\\|" ; fwd The `d' is not always used. If it is, it is always (?) lower case. Given that the `\\(' can be discarded this would be: "[Ff][Ww]d?\\|" ; fwd > "\\([Oo][Dd][Pp]\\)\\|" ; odp > "\\([Rr][Ee]\\)\\|" ; re > "\\([Rr]" ; r=E9f > (char-to-string (int-to-char '233)) Will this handle both upper and lower case (=E9 and =C9)? I'm not sure it's necessary, but since both `f' and `F' is allowed maybe it should be there. > "[Ff]\\)\\|" > "\\([Ss][Vv]\\)" ; sv > "\\)" > "\\(\\[[0-9]*\\]\\)" > "*:[ \t]*" > "\\)" > "*[ \t]*" > )) Breaking the regexp up made it much more readable, nice work. Niklas