From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: gnus mail-splitting tweak Date: Wed, 14 May 2003 11:25:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052904385 29197 80.91.224.249 (14 May 2003 09:26:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 09:26:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 14 11:26:21 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FsWj-0007ab-00 for ; Wed, 14 May 2003 11:26:21 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Fse2-0007uq-00 for ; Wed, 14 May 2003 11:33:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FsYA-0006kP-07 for emacs-devel@quimby.gnus.org; Wed, 14 May 2003 05:27:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19FsXu-0006i5-00 for emacs-devel@gnu.org; Wed, 14 May 2003 05:27:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19FsWj-0006EB-00 for emacs-devel@gnu.org; Wed, 14 May 2003 05:26:22 -0400 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FsWW-00069Y-00; Wed, 14 May 2003 05:26:09 -0400 Original-Received: from latte-wlan.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h4E9PrB4014145 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 14 May 2003 11:25:54 +0200 Original-To: Miles Bader Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030514:miles@gnu.org:919e203d8046fb9c X-Payment: hashcash 1.2 0:030514:emacs-devel@gnu.org:41d28a733499ecef In-Reply-To: (Miles Bader's message of "14 May 2003 17:35:18 +0900") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-Payment: hashcash 1.2 0:030514:miles@gnu.org:b387755fcf4194e0 X-Hashcash: 0:030514:miles@gnu.org:b387755fcf4194e0 X-Payment: hashcash 1.2 0:030514:emacs-devel@gnu.org:5bf8c0fb2995f115 X-Hashcash: 0:030514:emacs-devel@gnu.org:5bf8c0fb2995f115 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13849 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13849 Miles Bader writes: > In Gnus, the `nnmail-split-fancy' variable can contain functions, which > are called to provide more arbitrary matching capabilities. They are > evaluated in a buffer containing only the article headers. > > If you want to do splitting on the message contents as well, the > documentation contains the following suggestion: > > (defun split-on-body () > (save-excursion > (set-buffer " *nnmail incoming*") > (goto-char (point-min)) > (when (re-search-forward "Some.*string" nil t) > "string.group"))) > > However, using " *nnmail incoming*" has several disadvantages -- > (1) it's a funny looking magic string, which feels like it could change > in the future, and (2) it's not always the right buffer, e.g., when you > respool articles. > > What do you think of the following change, which explicitly exports a > variable dynamically bound to the appropriate buffer: This should be implemented in 5.10, the variable is called nnmail-article-buffer. > BTW, is there a gnus-specific mailing-list this sort of thing should be > sent to? ding@gnus.org.