From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Garreau\, Alexandre" Newsgroups: gmane.emacs.help Subject: Re: Gnus nnmail-split-fancy regexps =?utf-8?Q?can=E2=80=99t?= support backrefs inside themselves? Date: Mon, 19 Mar 2018 13:57:07 +0100 Message-ID: References: <4i30kmyxt8ln.1gu.xxuns.g6.gal@galex-713.eu> <20180317082506.GA23646@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521464155 18154 195.159.176.226 (19 Mar 2018 12:55:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2018 12:55:55 +0000 (UTC) User-Agent: Gnus (5.13), GNU Emacs 25.1.1 (x86_64-pc-linux-gnu) Cc: help-gnu-emacs To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 19 13:55:51 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exuKM-0004as-Qq for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 13:55:51 +0100 Original-Received: from localhost ([::1]:41936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exuMN-0005VL-WC for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 08:57:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exuLl-0005Ta-WB for help-gnu-emacs@gnu.org; Mon, 19 Mar 2018 08:57:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exuLh-0006l4-58 for help-gnu-emacs@gnu.org; Mon, 19 Mar 2018 08:57:18 -0400 Original-Received: from [78.192.124.148] (port=45635 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exuLg-0006iG-Rg for help-gnu-emacs@gnu.org; Mon, 19 Mar 2018 08:57:13 -0400 Original-Received: from PC713 (unknown [37.169.238.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: galex-713) by galex-713.eu (Postfix) with ESMTPSA id B5CCB15F59E; Mon, 19 Mar 2018 13:57:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=galex-713.eu; s=dkim; t=1521464230; bh=eG2xTs1vDsn/7JIoPcPmNlZCNBSpEA7AI1kVU3SuOKw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jvHfyC3F9B2Vcx1SVlsuUWELo1KMxYJ884PUIMhQNpFAVl35SdcqoybWYvdkd6ZJx ECw7bgHQ91DiXWiMaIVEmrtrFWR9Y+Q6/pisc49bFnstKAIp0rxyQMND4hUlPXuUzQ k15Z6+oN63ERaeB1rjoOSVj3ng0a8sr7lnlqSAIw= X-GPG-FINGERPRINT: E109 9988 4197 D7CB B0BC 5C23 8DEB 24BA 867D 3F7F X-Accept-Language: fr, en, it, eo In-Reply-To: <20180317082506.GA23646@tuxteam.de> (tomas@tuxteam.de's message of "Sat, 17 Mar 2018 09:25:06 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 78.192.124.148 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116205 Archived-At: Le 17/03/2018 =C3=A0 09h25, tomas@tuxteam.de a =C3=A9crit=C2=A0: > On Fri, Mar 16, 2018 at 08:15:59PM +0100, Garreau, Alexandre wrote: >> If I use a rule with a match regexp including a backreference inside the >> variable nnmail-split-fancy, it doesn=E2=80=99t match anything anymore: >> ("list-id" ".*<\\(gcc\\)-\\(help\\).\\1.\\(gnu\\)\\.org>.*" "lists.\\3.\= \1.\\2") > > What are you trying to match? The above will match "gcc-help#gcc#gnu.org > (where '#' stands here for any character). This looks strange to me (what > is the use of \\(...\\) for a constant match? \1 will always (in the case > of a match, that is) be "gcc", \2 always "help" and \3 always "gnu". > > Is that really your intention? What are you trying to match? Yes, and sorry (for the .), indeed I did correct this since, it is now ".*<\\(gcc\\)-\\(help\\)\\.gcc\\.\\(gnu\\)\\.org>.*". As the variable I=E2=80=99m talking about and the car of the list I=E2=80=99m talking about= show, I=E2=80=99m trying to match the list-id mail header of the gcc-help mailing list, which contains =E2=80=9C=E2=80=9D, but I reuse the wo= rds =E2=80=9Cgnu=E2=80=9D, =E2=80=9Cgcc=E2=80=9D and help in the group name I=E2=80=99m splitting this= in (=E2=80=9Clists.gnu.gcc.help=E2=80=9D), so I group these names, so that lat= er I can better factorise with other splitting rules. For maintainance and factorisations reasons, I=E2=80=99d also like to write =E2=80=9Cgcc=E2=80= =9D only once here, except it seems gnus/mail-split stops to match anything as soon as I include backrefs in the searching regexp. >> Yet backrefs are supported on the other side of the rule=E2=80=A6 is this >> normal? why is that? I at least would like a confirmation ^^ > > Yes, backreferences should work OK. So why isn=E2=80=99t this regexp matching any line containing =E2=80=9C=E2=80=9D?