From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23554 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE Newsgroups: gmane.emacs.gnus.general Subject: Re: `nnmail-split-fancy' regexp Date: 25 Jun 1999 13:48:20 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161265 2644 80.91.224.250 (21 Oct 2002 00:47:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:47:45 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA10918 for ; Fri, 25 Jun 1999 07:53:09 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id GAB06680; Fri, 25 Jun 1999 06:49:20 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 25 Jun 1999 06:50:06 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id GAA02074 for ; Fri, 25 Jun 1999 06:49:56 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA10852 for ; Fri, 25 Jun 1999 07:48:55 -0400 (EDT) Original-Received: from petty.cs.uni-dortmund.de (petty.cs.uni-dortmund.de [129.217.20.161]) by waldorf.cs.uni-dortmund.de with SMTP id NAA11285 for ; Fri, 25 Jun 1999 13:48:22 +0200 (MES) Original-Received: (grossjoh@localhost) by petty.cs.uni-dortmund.de id NAA02822; Fri, 25 Jun 1999 13:48:21 +0200 Original-To: ding@gnus.org In-Reply-To: Alexandre Oliva's message of "25 Jun 1999 07:28:10 -0300" Original-Lines: 33 User-Agent: Gnus/5.070088 (Pterodactyl Gnus v0.88) Emacs/20.3.10 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23554 Alexandre Oliva writes: > [...] Assume the (bug-)?libtool example I was > trying to work around. I ended up trying to match > ".*[< ]libtool@gnu\\.org", but it wouldn't work because it wouldn't > match the beginning of a word if the header line was just: > To: libtool@gnu.org Well, would this work? "\\(^\\|.*[< ,]\\)libtool@gnus\\.org" I think you're using the wrong approach, though. Most mailing lists contain a header which uniquely idenfies the mails. Often, the header is X-Loop, but the Sender header can also often be used. Hm. How does one match "Sender: foo-owner@frob.org" exactly with fancy splitting? Maybe it's not so easy after all :-( Yet another approach would be to split on the first match only, to check for bug-libtool first, but to give two groups if this matches. Lessee... (| ("Sender" "bug-libtool-owner" (& "bug-libtool group" "libtool group")) ("Sender" "libtool-owner" "libtool group")) [time passes] Oh! The header is "owner-libtool" rather than "libtool-owner", so it is trivial to match "owner-libtool" but not "owner-bug-libtool". Just my two cents. kai -- Life is hard and then you die.