Gnus development mailing list
 help / color / mirror / Atom feed
* `nnmail-split-fancy' regexp
@ 1999-06-24  8:25 Petersen Jens-Ulrik (NRC/Tokyo)
  1999-06-24 18:26 ` Per Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: Petersen Jens-Ulrik (NRC/Tokyo) @ 1999-06-24  8:25 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~1999-07-07 17:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-24  8:25 `nnmail-split-fancy' regexp Petersen Jens-Ulrik (NRC/Tokyo)
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

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