From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87933 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Marusich Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap-split-fancy: regexp ".*" matches less than expected Date: Sat, 07 Apr 2018 10:03:41 -0700 Message-ID: <873707hrte.fsf@gmail.com> References: <87po3br1k1.fsf@gmail.com> <87h8on9ydh.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1523120579 953 195.159.176.226 (7 Apr 2018 17:02:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2018 17:02:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: ding@lists.math.uh.edu To: Andreas Schwab Original-X-From: ding-owner+m36147@lists.math.uh.edu Sat Apr 07 19:02:55 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f4rEj-0008J8-4Z for ding-account@gmane.org; Sat, 07 Apr 2018 19:02:45 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id c42bd7bb-3a85-11e8-a660-b499baabecb2; Sat, 07 Apr 2018 17:04:43 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1f4rFt-0002vf-1U; Sat, 07 Apr 2018 12:03:57 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f4rFp-0002v8-P4 for ding@lists.math.uh.edu; Sat, 07 Apr 2018 12:03:53 -0500 Original-Received: from mail-io0-f171.google.com ([209.85.223.171]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1f4rFo-0004Ec-5X for ding@lists.math.uh.edu; Sat, 07 Apr 2018 12:03:53 -0500 Original-Received: by mail-io0-f171.google.com with SMTP id p139so5133804iod.0 for ; Sat, 07 Apr 2018 10:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xGD7yDuprM1YmAQdjDi5NTov5gFZwxO01AL0SV1sbzE=; b=t1x+iS4M8Josls+/aS7ksSmtzmSkZb40wyfWaOD/ncvYKw0eA4J2oZwFT4KDBATN/6 wMIGrPg3fF933xCjot/PXMadxT21uQr1ngZueevPI9NGJtrq0H5y/qo5miaP8f4CZhDK PM5BeVSImtn8Nb8cWV6oUHPMpmhfBBaYKXhTO+gzDn45z/K90Ng3Yu3f7PwIEobAJ6CI 1Iehm2xzP3MhuG8Sj6LZZJ5aFYzpewJET0YhdcaIUiHLxHDwlOoSDdmTHyvxyrk9elWL qJ6MMHvkXQnWIfQA78rMZ5MOh91DySvEFzf81joLOimMvaxKV8jfqraglodpqgxStwZB yB+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xGD7yDuprM1YmAQdjDi5NTov5gFZwxO01AL0SV1sbzE=; b=DuwbjFMulWGYuIiHz+yA9YjIZzzXtivHETQgfTcPvoZ14jTd5gfDdT5Cmi30Bnf5A1 w9D8qNwdTsPTbiI0oUGuqxy6mE04G+NGhptGb7EUwHZWuLGDAEoi65dE+CUGxdZm3KV3 jApkUt/IuxhwqFz6oulwx7AgeRjjhQMH3qtOyGNjSvkudT+AQr459JAZwUFwWXAAIh5B zGOqNjLSvAUYi4t+0n47diM+zWVyEsv3yFvVKOkJiAwATQ1c3hvt1zGWC3ZKQZ6T2lhN goq3NdCjsro6yZb43zLvZPfB4zce13V0rrboH5C8pQCJt0JNVqA3SoujEkPaX0ZURulw DPjQ== X-Gm-Message-State: ALQs6tDc3wW0dZsyYsTK3Cj1Zbo1K3W+gUP5Ag13MQOnKJ19KwG82xRN rA7W8lc1qJSFys5bUlC+dwG+ehKG X-Google-Smtp-Source: AIpwx4+UcoeRQokGXG5eXIRAr2BnkTE//p5JtpeX9xoWGJ+GFjGV3GBO7b2XQ00w+smRR5I2wBqzxA== X-Received: by 10.107.158.207 with SMTP id h198mr30384486ioe.100.1523120628229; Sat, 07 Apr 2018 10:03:48 -0700 (PDT) Original-Received: from garuda.local ([172.58.46.242]) by smtp.gmail.com with ESMTPSA id b18sm8219042ioa.59.2018.04.07.10.03.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 10:03:47 -0700 (PDT) In-Reply-To: <87h8on9ydh.fsf@linux-m68k.org> (Andreas Schwab's message of "Sat, 07 Apr 2018 11:09:14 +0200") X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87933 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Schwab writes: > On Apr 06 2018, Chris Marusich wrote: > >> This is the same as before, but I've replaced "gnucash-user" with ".*". >> I expected the same result as before, but Gnus surprised me. Instead, >> gnus-summary-respool-query says: >> >> This message would go to list.user >> >> and gnus-summary-respool-trace says: >> >> ("cc" "\\(.*\\)@gnucash.org" "list.\\1") >> "list.\\1" >> >> In this case, why does the ".*" match "user" instead of "gnucash-user"? > > I think that happens because the actual regexp used for searching is > "\\(\\(FIELD\\):.*\\)\\<\\(VALUE\\)\\>", note the embedded ".*". That would explain it. Thank you! It would be nice if the Gnus manual described in a little more detail how the regexp defined in the "fancy" split method will be used. Without knowledge that a ".*" was put in front of my regexp, the results I was seeing made no sense. I would submit a patch for the manual myself, but I'm still just a Gnus beginner, so I can't (yet!) speak with much authority on the subject. By the way, where is this regexp defined in the Gnus source? I ran "M-x rgrep" with the following regexp in the Emacs 25.3 source but found no results: "\\\\\\\\(\\\\\\\\(.+?\\\\\\\\):\\.\\*\\\\\\\\)\\\\\\\\<\\\\\\\\(.+?\\\\\\\= \)\\\\\\\\>" "M-x regexp-builder" tells me that this regexp should match the regexp string you mentioned above. If you know of a better way for me to find it in the source, I'd love to know! Again, thank you for the help. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrI+e0ACgkQ3UCaFdgi Rp2+kBAAje0zqvMVHfWXBf26PAQIv2HTrgeQOEqVSisGoCL2bE5/TseVBtoqt+BP 87wPiit4DhQvxnSSUct9REx/Jmp2OISnhg4ghllJJDDvrbAH81Io0YjQlnJHQ5oO b3va1PACeqOPUIwyDRsghP/UmN6cOAUGb16c6dcVLREdBmghs2ArVyCl8IGJoFby QJAnH54lXsuTnj+01doPoLIZ5D0/AwiAUkRXWUD5mtV6oVw8kF4PdlhBi+hHHFvT RmUjvqhODbOdY8SRGzzzSLC2fvHFdB95caap/SUebZxb/ZDnImTFyVxyCOwQhoZo z2JWbRw1K9EiR/WW25ahc5izf0vo2noq/xx+mGD3136eTr9Oan2m8Qfcl1LKRawA Zb5ADB/22c8tOrFedKxY0A/6M/V3ozvBKcvEW9HaIanrq+VIXjceNfFEcldoHF65 UZgVULIIgBKWtLX7p3ZUOmrvKvs9AsQ8jk+xNS0Dv+ejzfjJ+dEuKxibpOwkR/wr ZwWdhsf1xkLPHXM6G5XEH/MOM+k/mUj1xwFOgsTWsgi5OGCSBKUtFXctV2sjknOt UNk1GrIWfIVkR0Q415+ACXDbFZB7WnFK3IBtqWSxhu7Pz1OCM9/bKWzAsJ1RPX1R mxTvpNMI8VTJE1FtNkqRuXC4kcCH5c0cSugkup4WDLa18X2nQQI= =7wXw -----END PGP SIGNATURE----- --=-=-=--