Gnus development mailing list
 help / color / mirror / Atom feed
From: "Petersen Jens-Ulrik (NRC/Tokyo)" <jens-ulrik.petersen@nokia.com>
Subject: `nnmail-split-fancy' regexp
Date: 24 Jun 1999 17:25:00 +0900	[thread overview]
Message-ID: <tfz3dzikntv.fsf@toedar02.europe.nokia.com> (raw)

I found the restriction that string VALUE regexp's should match to
whole words too restrictive...


1999-06-24  Jens-Ulrik Petersen <jens-ulrik.petersen@nokia.com>

	* 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
	<user@some.domain>.


--- 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.


             reply	other threads:[~1999-06-24  8:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-24  8:25 Petersen Jens-Ulrik (NRC/Tokyo) [this message]
1999-06-24 18:26 ` Per Abrahamsen
1999-06-25  7:52   ` Petersen Jens-Ulrik (NRC/Tokyo)
1999-06-25  9:48     ` Kai.Grossjohann
1999-06-25 10:28       ` Alexandre Oliva
1999-06-25 11:48         ` Kai.Grossjohann
1999-06-25 12:51           ` Alexandre Oliva
1999-06-25  9:42   ` Alexandre Oliva
1999-06-25 12:25     ` Per Abrahamsen
1999-06-28 17:33       ` Lars Magne Ingebrigtsen
1999-06-28 18:14         ` Aaron M. Ucko
1999-06-28 18:49           ` Per Abrahamsen
1999-06-28 19:11             ` Alexandre Oliva
1999-07-04  3:07               ` Lars Magne Ingebrigtsen
1999-07-04 21:15                 ` Alexandre Oliva
1999-07-04 22:54                   ` Alexandre Oliva
1999-07-07 14:28                   ` Toby Speight
1999-07-07 17:38                     ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tfz3dzikntv.fsf@toedar02.europe.nokia.com \
    --to=jens-ulrik.petersen@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).