From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36217 Path: main.gmane.org!not-for-mail From: Josh Huber Newsgroups: gmane.emacs.gnus.general Subject: Re: letting split rules have access to the message body... Date: 14 May 2001 17:18:38 -0400 Organization: Mind your own business, you silly arthur king! Message-ID: <87k83jk4sx.fsf@mclinux.com> 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=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035171841 7373 80.91.224.250 (21 Oct 2002 03:44:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:44:01 +0000 (UTC) Return-Path: Original-Received: (qmail 1054 invoked by alias); 14 May 2001 21:18:42 -0000 Original-Received: (qmail 1049 invoked from network); 14 May 2001 21:18:41 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 14 May 2001 21:18:41 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id XAA04538 for ding@gnus.org; Mon, 14 May 2001 23:18:34 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-NNTP-Posting-Host: lowell.missioncriticallinux.com Original-X-Trace: quimby.gnus.org 989875113 28190 208.51.139.16 (14 May 2001 21:18:33 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 14 May 2001 21:18:33 GMT X-Go-Away: or I shall taunt you a second time! X-PGP-KeyID: 6B21489A X-PGP-CertKey: 61F0 6138 BE7B FEBF A223 E9D1 BFE1 2065 6B21 489A X-Request-PGP: finger:huber@db.debian.org Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley) Original-Lines: 49 Xref: main.gmane.org gmane.emacs.gnus.general:36217 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36217 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > 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? Yes, except could you explain the wording for me? when it says: "The `" *nnmail incoming*"' is narrowed to the message in question when the `:' function is run." Does this mean that if I (widen), i could potentially get other messages? In other words, is there a buffer that contains the contents of the incoming spool file, which is then narrowed to each message in turn? I need to be able to narrow to the body of the message, the headers or both. Is it possible (for example) to narrow to the body of the already narrowed region, and somehow widen to the previously narrowed region? something like pop-narrow? :) Thanks, -- Josh Huber