From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36215 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: letting split rules have access to the message body... Date: 14 May 2001 22:16:51 +0200 Message-ID: References: <87pudg99j9.fsf@mclinux.com> <87bsovlp5m.fsf@mclinux.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171839 7364 80.91.224.250 (21 Oct 2002 03:43:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:43:59 +0000 (UTC) Return-Path: Original-Received: (qmail 442 invoked by alias); 14 May 2001 20:17:19 -0000 Original-Received: (qmail 437 invoked from network); 14 May 2001 20:17:19 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 14 May 2001 20:17:19 -0000 Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id WAA19646 for ; Mon, 14 May 2001 22:16:51 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id WAA03877; Mon, 14 May 2001 22:16:51 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id WAA03106; Mon, 14 May 2001 22:16:51 +0200 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} (Josh Huber's message of "14 May 2001 15:13:41 -0400") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 32 Xref: main.gmane.org gmane.emacs.gnus.general:36215 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36215 On 14 May 2001, Josh Huber wrote: > it would be nice if that sequence was documented in the > manual. i.e.: [...] It seems this has been done, at least in CVS: /----[ from the Gnus info file, node `Fancy Mail Splitting' ] | 6. `(: FUNCTION ARG1 ARG2 ...)': If the split is a list, and the | first element is `:', then the second element will be called as a | function with ARGS given as arguments. The function should return | a SPLIT. | | For instance, the following function could be used to split based | on the body of the messages: | | (defun split-on-body () | (save-excursion | (set-buffer " *nnmail incoming*") | (goto-char (point-min)) | (when (re-search-forward "Some.*string" nil t) | "string.group"))) | | The `" *nnmail incoming*"' is narrowed to the message in question | when the `:' function is run. \---- Is this enough? kai -- The passive voice should never be used.