From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87937 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap-split-fancy: regexp ".*" matches less than expected Date: Mon, 09 Apr 2018 20:14:33 -0400 Message-ID: <87efjn3ok6.fsf@uwo.ca> References: <87po3br1k1.fsf@gmail.com> <87h8on9ydh.fsf@linux-m68k.org> <87vad1le8z.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523319242 17926 195.159.176.226 (10 Apr 2018 00:14:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2018 00:14:02 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36151@lists.math.uh.edu Tue Apr 10 02:13:58 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 1f5gv6-0004TU-Cy for ding-account@gmane.org; Tue, 10 Apr 2018 02:13:56 +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 4ed7b589-3c54-11e8-a660-b499baabecb2; Tue, 10 Apr 2018 00:15: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 1f5gvu-0002XL-4K; Mon, 09 Apr 2018 19:14:46 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f5gvr-0002Wi-IN for ding@lists.math.uh.edu; Mon, 09 Apr 2018 19:14:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.90_1) (envelope-from ) id 1f5gvq-0008F2-8d for ding@lists.math.uh.edu; Mon, 09 Apr 2018 19:14:43 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1f5gvo-0006oH-TF for ding@gnus.org; Tue, 10 Apr 2018 02:14:40 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f5gth-0002tM-2n for ding@gnus.org; Tue, 10 Apr 2018 02:12:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:1jsYBxT+/PHEAHDYJ9PXQOsny5k= X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.0101 Ham tokens: 0.000-51--1916h-0s--0d--Apr, 0.000-16--597h-0s--0d--H*M:fsf, 0.000-13--457h-0s--0d--H*UA:Emacs, 0.000-13--454h-0s--0d--H*u:Emacs, 0.000-10--368h-0s--0d--H*u:Gnus Spam tokens: 0.997-30080--558h-24511s--0d--H*r:quimby.gnus.org, 0.997-18207--348h-14844s--0d--HX-Envelope-From:sk:junkmas, 0.997-18207--348h-14844s--0d--H*RT:sk:junkmas, 0.997-18207--348h-14844s--0d--Hx-spam-relays-internal:sk:junkmas, 0.995-31045--948h-25595s--0d--HTo:D*gnus.org Autolearn status: no autolearn_force=no 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5% [score: 0.0101] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87937 Archived-At: On Apr 8, 2018, Chris Marusich wrote: > 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 ".*". > > I've tried to figure out a good way to accomplish what I want, but I'm > stuck. Does it help to put a literal space character at the start of your regexp, like " \\(.*\\)@gnucash.org"? I'm not sure what "\\<" and "\\>" are doing in the constructed regexp, but if they are matching literal "<" and ">" characters, then this probably won't work. Dan