[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus mail-splitting tweak

From: Simon Josefsson
Subject: Re: gnus mail-splitting tweak
Date: Wed, 14 May 2003 11:25:53 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Miles Bader <address@hidden> 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

> BTW, is there a gnus-specific mailing-list this sort of thing should be
> sent to?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]