From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44775 Path: main.gmane.org!not-for-mail From: Bryan Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy split regexp? Date: Wed, 08 May 2002 14:58:34 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87znzaiigr.fsf@alum.wpi.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020884489 23307 127.0.0.1 (8 May 2002 19:01:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 May 2002 19:01:29 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 175Wgr-00063n-00 for ; Wed, 08 May 2002 21:01:29 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 175WfD-0006bX-00; Wed, 08 May 2002 13:59:47 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 08 May 2002 14:00:03 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA14030 for ; Wed, 8 May 2002 13:59:49 -0500 (CDT) Original-Received: (qmail 17741 invoked by alias); 8 May 2002 18:59:27 -0000 Original-Received: (qmail 17736 invoked from network); 8 May 2002 18:59:27 -0000 Original-Received: from smtp10.atl.mindspring.net (207.69.200.246) by gnus.org with SMTP; 8 May 2002 18:59:27 -0000 Original-Received: from honky.ems.mindspring.net ([207.69.217.84] helo=honky.ems.mindspring.net.mindspring.com) by smtp10.atl.mindspring.net with esmtp (Exim 3.33 #1) id 175Wek-0007d5-00 for ding@gnus.org; Wed, 08 May 2002 14:59:18 -0400 Original-To: ding@gnus.org In-Reply-To: <87znzaiigr.fsf@alum.wpi.edu> (Josh Huber's message of "Wed, 08 May 2002 14:48:36 -0400") Original-Lines: 34 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (bok choi, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44775 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44775 My guess is that this has to do with the fact that nnmail-split-it uses re-search-backwards to do it's pattern matching. BrYan Josh Huber writes: > I must be being pretty dense here -- perhaps someone could help me > out. Here's the rule: > > ("Resent-To" > "\\(.+\\)@packages\\.qa\\.debian\\.org" > "mail.debian.pts.\\1") > > This does not work. > > Variations on this, such as .*, [a-z-_]+ (or *), \\w+, etc do not > work! The versions with * always seem to match nothing, and the > message would be split into mail.debian.pts., the versions with + > always seem to match e: mail.debian.pts.e > > The message I'm using for testing has this header: > > Resent-To: developers-reference@packages.qa.debian.org > > This works fine: > > (let ((str "developers-reference@packages.qa.debian.org")) > (string-match "\\<\\(.*\\)@packages\\.qa\\.debian\\.org\\>" str) > (match-string 1 str)) > > => "developers-reference" > > What could possibly be going on here?