From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36023 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: what's available in fancy-split functions? Date: 26 Apr 2001 08:20:53 +0200 Message-ID: References: <878zkoppm6.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 1035171680 6396 80.91.224.250 (21 Oct 2002 03:41:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:41:20 +0000 (UTC) Return-Path: Original-Received: (qmail 18279 invoked by alias); 26 Apr 2001 08:05:37 -0000 Original-Received: (qmail 18268 invoked from network); 26 Apr 2001 08:05:36 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 26 Apr 2001 08:05:36 -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 KAA24678 for ; Thu, 26 Apr 2001 10:05:09 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id KAA29244; Thu, 26 Apr 2001 10:05:08 +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 IAA02548; Thu, 26 Apr 2001 08:20:53 +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 "25 Apr 2001 18:43:29 -0400") User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103 Original-Lines: 47 Xref: main.gmane.org gmane.emacs.gnus.general:36023 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36023 On 25 Apr 2001, Josh Huber wrote: > I can't seem to find any documentation mentioning what kind of data > is available to a function called with a fancy-split rule. Note the following paragraph in the documentation for nnmail-split-methods: /---- | The second element can also be a function. In that case, it will be | called narrowed to the headers with the first element of the rule as | the argument. It should return a non-nil value if it thinks that the | mail belongs in that group. \---- Sadly, it's not made explicit that this also applies to nnmail-split-fancy. But the documentation for nnmail-split-fancy (the variable) does mention that functions called via `:' are called ``in a buffer containing the message headers''. > I'd like to do some special sorting on incoming messages, with the > form like: > > (: my-gnus-filter "mail.junk") > > I'm passing in the group which will be returned in certain cases. > > Does my function have access to the whole message? > > can I: > > (save-restriction > (widen) > ... Yes, this has been suggested a couple of weeks ago. > I guess on the same topic, does gnus have functions for extracting > particular headers from a message for use in custom user functions? message-fetch-field? kai -- The passive voice should never be used.