Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: Splitting on mail contents?  (using spam-stat.el)
Date: Wed, 04 Sep 2002 16:56:59 +0200	[thread overview]
Message-ID: <vafheh5vm4k.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <03y9ahlu15.fsf@msgid.viggen.net> (Oystein Viggen's message of "Wed, 04 Sep 2002 16:16:22 +0200")

Oystein Viggen <oysteivi@tihlde.org> writes:

> * [Kai Großjohann] 
>
>> Regular splitting can't run functions, I think.
>
> You're wrong there.  From C-h v 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.
> `----
>
> I've tested this, and the function is called as specified.

OK, sorry, then.

>> I suggest that you switch to fancy splitting.
>
> Maybe I should, but can functions called from fancy splitting easily
> access the whole article?  It seems I would want to use (: FUNCTION),
> but according to the documentation, this function will be called "in the
> buffer containing the message headers".
>
> I see that spam-stat-split-fancy uses gnus-original-article-buffer.
> Does nnmail-split-fancy perhaps store the article in this buffer when
> splitting?  I'll have to investigate that.

Well, I remember that Gnus uses two different buffers for splitting
and for `B r'.  Beware!

> My nnmail-split-methods is about 100 lines long, and uses a few home
> grown hacks in addition, so I don't want to do the big job of converting
> unless I'm pretty sure something will be gained by it :)

Maybe not...

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)



  reply	other threads:[~2002-09-04 14:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04 12:01 Oystein Viggen
2002-09-04 14:00 ` Kai Großjohann
2002-09-04 14:16   ` Oystein Viggen
2002-09-04 14:56     ` Kai Großjohann [this message]
2002-09-04 15:16       ` Oystein Viggen
2002-09-04 15:23       ` Jeremy H. Brown
2002-09-04 17:00         ` Oystein Viggen
2002-09-13 16:18         ` finding the article buffer when splitting Alex Schroeder
2002-09-13 23:56           ` Oystein Viggen
2002-09-14  1:18             ` Alex Schroeder
2002-09-14 10:01               ` Oystein Viggen
2002-09-15 18:21           ` Jeremy H. Brown
2002-09-23 14:11             ` Alex Schroeder
2002-09-23 18:49               ` Oystein Viggen
2002-09-06 15:55       ` Splitting on mail contents? (using spam-stat.el) Alex Schroeder
2002-09-07 12:30         ` Alex Schroeder
2002-09-07 17:17           ` Simon Josefsson
2002-09-07 19:05             ` Kai Großjohann
2002-09-07 19:05           ` Kai Großjohann
2002-09-12 16:07 ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vafheh5vm4k.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).