* Re: splitting on body
[not found] <egada3qw1n.fsf@sefirot.ii.uib.no>
@ 2003-08-21 21:53 ` Thomas Mittelstaedt
[not found] ` <egy8xmpa40.fsf@sefirot.ii.uib.no>
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Mittelstaedt @ 2003-08-21 21:53 UTC (permalink / raw)
"Ketil Malde" <ketil+@ii.uib.no> writes:
> Hi,
>
> I'm struggling to split messages based on body, using the example from
> the Info manual:
>
> (defun split-on-body ()
> (save-excursion
> (set-buffer " *nnmail incoming*")
> (goto-char (point-min))
> (when (re-search-forward "Some.*string" nil t)
> "string.group")))
>
Why don't you use procmail to do split-on-body stuff?
Insert some header in the procmail process and then
use standard gnus splitting based on these special additional headers
or move that mail to a special file.
I, for instance, use a special header called X-SpamProbe to
filter for spam.
Here is the relevant part of my .procmailrc:
:0 wf
SCORE=| spamprobe -8 receive
:0 wf
| formail -I "X-SpamProbe: $SCORE"
:0 a
*^X-SpamProbe: SPAM
spamprobe
Did this help?
--
Thomas Mittelstaedt
Thomas Mittelstaedt <tmstaedt@t-mittelstaedt.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-22 10:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <egada3qw1n.fsf@sefirot.ii.uib.no>
2003-08-21 21:53 ` splitting on body Thomas Mittelstaedt
[not found] ` <egy8xmpa40.fsf@sefirot.ii.uib.no>
2003-08-22 10:36 ` Ted Zlatanov
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).