*** empty log message ***
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 15 Aug 2000 18:09:55 +0000 (18:09 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 15 Aug 2000 18:09:55 +0000 (18:09 +0000)
texi/gnus.texi

index 9590cff..1e0efbc 100644 (file)
@@ -11619,6 +11619,18 @@ a list, and the first element is @code{:}, then the second element will
 be called as a function with @var{args} given as arguments.  The
 function should return a @var{split}.
 
+For instance, the following function could be used to split based on the
+body of the messages:
+
+@lisp
+(defun split-on-body ()
+  (save-excursion
+    (set-buffer " *nnmail incoming*")
+    (goto-char (point-min))
+    (when (re-search-forward "Some.*string" nil t)
+      "string.group")))
+@end lisp
+
 @item
 @code{(! @var{func} @var{split})}: If the split is a list, and the first
 element is @code{!}, then SPLIT will be processed, and FUNC will be