From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78349 Path: news.gmane.org!not-for-mail From: Leonidas Tsampros Newsgroups: gmane.emacs.gnus.general Subject: Re: Random regex/fancy-split question Date: Tue, 05 Apr 2011 16:05:53 +0300 Message-ID: <87y63ox2z2.fsf@bifteki.lan> References: <8662quuejh.fsf@red.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1302008846 4874 80.91.229.12 (5 Apr 2011 13:07:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2011 13:07:26 +0000 (UTC) Cc: ding@gnus.org To: Norman Walsh Original-X-From: ding-owner+M26655@lists.math.uh.edu Tue Apr 05 15:07:18 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q75yS-0004UG-2t for ding-account@gmane.org; Tue, 05 Apr 2011 15:07:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Q75xe-0007gg-1n; Tue, 05 Apr 2011 08:06:22 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Q75xc-0007gW-F6 for ding@lists.math.uh.edu; Tue, 05 Apr 2011 08:06:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q75xV-0002DP-Iu for ding@lists.math.uh.edu; Tue, 05 Apr 2011 08:06:19 -0500 Original-Received: from mail-ww0-f48.google.com ([74.125.82.48]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q75xU-00026Q-7o for ding@gnus.org; Tue, 05 Apr 2011 15:06:12 +0200 Original-Received: by wwi18 with SMTP id 18so296316wwi.5 for ; Tue, 05 Apr 2011 06:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=6ynSdBTqPBmAdOETdKQkaMW/0EPM5v0fnK/BQ2AOJ6I=; b=HbNHfSdmfNSdxJ6qHCRlxAoM9lWTI5LIz2yYLoy8qMKKEgO4Ww6p63nIf4zijUBRBB eCwbz4Mf3x90HmJ2zw54anuTLUw6a47GNG85By92/Xu7A+RjQRTBkJsKRS9zP4BzlIts NUnyLLSI2+UjMwYBcxyeST+3wlCexmTtUS0qU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Ku3Q35NkBGkTI6Lxj7cs+cm5E28Cr9nb8C+/bu3WAYzIG+mlAN+5yGDr50CGpjOLyN HPlATCWuyWt4wVrW4ihOloOR2DUKWJOQLsTsVngFxIwXZlp0OSTjU8hmtSEnsHOu2l7V K1o2suKTx9wW34+o/+iw43GHqRiQ+y7luCdoc= Original-Received: by 10.227.12.13 with SMTP id v13mr5817402wbv.134.1302008766679; Tue, 05 Apr 2011 06:06:06 -0700 (PDT) Original-Received: from bifteki.lan ([212.205.26.1]) by mx.google.com with ESMTPS id x1sm3555398wbh.2.2011.04.05.06.06.05 (version=SSLv3 cipher=OTHER); Tue, 05 Apr 2011 06:06:06 -0700 (PDT) Original-Received: from ltsampros-ferrari-one-200 (localhost.localdomain [127.0.0.1]) by bifteki.lan (Postfix) with ESMTP id AD7FC64A01B; Tue, 5 Apr 2011 16:05:59 +0300 (EEST) In-Reply-To: (Norman Walsh's message of "Tue, 05 Apr 2011 07:01:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78349 Archived-At: --=-=-= Content-Type: text/plain Norman Walsh writes: > merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>>> "Norman" == Norman Walsh writes: >> >> Norman> Hello world, >> Norman> Every now and then I stumble over a new google group for which this >> Norman> fancy split line doesn't work: >> >> Norman> (to "\\(.+\\)@googlegroups\\.com" "googlegroups.\\1") >> >> Maybe the .+ which is matching the longest match here: >> >> Norman> To: "epub-working-group@googlegroups.com" >> Norman> >> >> which would be: >> >> epub-working-group@googlegroups.com" > >> is trying to make a group called >> >> googlegroups.epub-working-group@googlegroups.com" > >> which GNUS should reasonably reject? > > Maybe. But how does that become "googlegroups."? Ah well. I guess if I really > get tired of adding the one-off rules, I can always go read the source :-) > > Be seeing you, > norm I'm pretty sure I had stumbled upon the same problem. For googlegroups I can see that I have defined those rules here, so it's pretty certain: ("sender" "django-users@googlegroups.com" "mail.gg.django-users") ("sender" "django-developers@googlegroups.com" "mail.gg.django-developers") ("sender" "django-announce@googlegroups.com" "mail.gg.django-announce") ("list-id" ".*<\\(.+\\)\\.googlegroups\\.com>.*" "mail.gg.\\1") However, I ran the last regexp in re-builder, and it seems to match 'epub-working-group' in from the angled portion of the To: address. Also, in my setup, I removed the first 3 django specific entries, and again B t reported a match on the last general rule substituting the group name correctly. Maybe you can give that rule a try. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJNmxOxAAoJEM4bpX1ggVac3jEQAK07FPcU2GwoCFpXVn0SUT0w 3myunfjr7xeDhIuewT2Jx9vYhiPca96K1FeRatatwF70yBuk08WEuYe3/3CyLrBk ATLkxwc5Qtl3TsDyn4HUvqAg+U9qAyWq8cPhqkQ/zAl0uhU276NJ2sumx79+WqkQ yylbT3BvrMF1qvGtqSX3flYJnSxuQtCyHEwIzQrjOFWVRv1SahRRrUwbHJF6kc1J XgJZRLkfAzKvrvEe9w0H5LNpwZqmckAOu9CtndndFTsTgNGR/u48dhCDfLCpP3XP fXqeYnfKcksPIM2ipjrFkQv09s8+nYduwWqmuSCJM4r0OlsVdxunTBBtYVygKuva jP7MknNHVCnFKg/raEE2wnO9M23sPoh2Mm27s4x6CX9BD49nsHGTs8Vj0FzwH3xa 6S9OGMP/jGkFLb2sQMybm0IUcTzWA+zFglLixEBjDvVDGLxro6ljJjJwwqbdk2v+ sMIAJTHzz9qI3jdAz0JaVFqD3cmq2CBE7/pqSBXDU4VJxehZspZ7xgI9cRWNUEqD zhAgIlywm/7RbTVcpAkyE84pWpQu0xDN8iYh5JATv91NTC28BguMb3kcIZ58YdF4 2tPEEk61ShdQvvaOboAZy5COzgVzP3sBKcF6dkMrtBuTm2hCU7CB0Sg3f9XzE0BT PodhBhVlHN91RDYcfDE9 =HVRf -----END PGP SIGNATURE----- --=-=-=--