From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23506 Path: main.gmane.org!not-for-mail From: "Petersen Jens-Ulrik (NRC/Tokyo)" Newsgroups: gmane.emacs.gnus.general Subject: `nnmail-split-fancy' regexp Date: 24 Jun 1999 17:25:00 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161226 2385 80.91.224.250 (21 Oct 2002 00:47:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:47:06 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA04154 for ; Thu, 24 Jun 1999 09:40:00 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB04782; Thu, 24 Jun 1999 08:39:09 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 24 Jun 1999 03:26:36 -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 DAA11587 for ; Thu, 24 Jun 1999 03:26:26 -0500 (CDT) Original-Received: from ns10.nokia.com (ns10.nokia.com [131.228.6.229]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id EAA29897 for ; Thu, 24 Jun 1999 04:25:24 -0400 (EDT) Original-Received: from samail01.nmp.nokia.com (samail01.nmp.nokia.com [131.228.240.6]) by ns10.nokia.com (8.8.8/8.6.9) with ESMTP id LAA18444 for ; Thu, 24 Jun 1999 11:25:11 +0300 (EET DST) Original-Received: from tonfs01.europe.nokia.com (tonfs01.europe.nokia.com [172.24.106.50]) by samail01.nmp.nokia.com (8.8.6 (PHNE_14041)/8.8.6) with ESMTP id LAA02190 for ; Thu, 24 Jun 1999 11:33:41 +0300 (EETDST) Original-Received: from toedar02.europe.nokia.com (toedar02.europe.nokia.com [172.24.108.54]) by tonfs01.europe.nokia.com with ESMTP (8.7.1/8.7.1) id RAA24790 for ; Thu, 24 Jun 1999 17:25:01 +0900 (JST) Original-Received: (from jepeters@localhost) by toedar02.europe.nokia.com (8.7.1/8.8.6) id RAA22227; Thu, 24 Jun 1999 17:25:00 +0900 (JST) Original-To: ding@gnus.org Original-Lines: 41 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23506 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23506 I found the restriction that string VALUE regexp's should match to whole words too restrictive... 1999-06-24 Jens-Ulrik Petersen * nnmail.el (nnmail-split-fancy): Update docstring to reflect following change: ie that a VALUE need no longer match complete words. (nnmail-split-it): Change regexp so that VALUE doesn't have to match a whole word. This makes it possible to match for example . --- nnmail.el~ Thu Jun 24 17:15:03 1999 +++ nnmail.el Thu Jun 24 17:15:03 1999 @@ -306,8 +306,8 @@ the buffer containing the message headers. The return value FUNCTION should be a split, which is then recursively processed. -FIELD must match a complete field name. VALUE must match a complete -word according to the `nnmail-split-fancy-syntax-table' syntax table. +FIELD must match a complete field name. VALUE is matched +according to the `nnmail-split-fancy-syntax-table' syntax table. You can use \".*\" in the regexps to match partial field names or words. FIELD and VALUE can also be lisp symbols, in that case they are expanded @@ -1147,11 +1147,11 @@ (if (symbolp field) (cdr (assq field nnmail-split-abbrev-alist)) field) - "\\):.*\\)\\<\\(" + "\\):.*\\)\\(" (if (symbolp value) (cdr (assq value nnmail-split-abbrev-alist)) value) - "\\)\\>"))) + "\\)"))) (push (cons split regexp) nnmail-split-cache) ;; Now that it's in the cache, just call nnmail-split-it again ;; on the same split, which will find it immediately in the cache.