Gnus development mailing list
 help / color / mirror / Atom feed
* Splitting based on body content
@ 2000-08-10 20:34 Alan Shutko
  2000-08-14 17:18 ` François Pinard
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Shutko @ 2000-08-10 20:34 UTC (permalink / raw)


I want to autosend all of the mail relating to help desk calls at
work to their own folders.  Easy enough to do with fancy
splitting if people put the number in the header.  But they
don't, and our pathetic help desk system doesn't either.

So, I thought I'd write a function to do it from a ":" rule.
Problem is, I have no idea how to get the body of the article to
search.  Any clues?  It's not copied into the *nntpd* buffer
where you have access to the headers, and while I'm willing to
check another buffer, it seems that the buffer to look for is
different if you're respooling or getting incoming mail.  At that
point, I was way too confused and gave up trying to sort out the
code.

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
92 days, 19 hours, 3 minutes, 24 seconds till we run away.
Things equal to nothing else are equal to each other.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Splitting based on body content
  2000-08-10 20:34 Splitting based on body content Alan Shutko
@ 2000-08-14 17:18 ` François Pinard
  2000-08-14 17:46   ` Alan Shutko
  0 siblings, 1 reply; 3+ messages in thread
From: François Pinard @ 2000-08-14 17:18 UTC (permalink / raw)


[Alan Shutko]

> So, I thought I'd write a function to do it from a ":" rule.  Problem is,
> I have no idea how to get the body of the article to search.  Any clues?

I've been much tempted to do something like this, for SPAM filtering, but
feel a bit torn out.  Doing from Gnus would be comfortable, as it offers
a lot of flexibility and configurability, but it would be really slow.
Doing it through `procmail' is faster and a little less apparent for the
user, since done off-line with reading, but the last time I tried it,
receiving a lot of messages at once was burning a notable part of the CPU,
for a very notable time.  I'm thinking about writing a Flex filter knowing
many rules, this should be as speedy as anyone could get, but we are rather
far from Gnus.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Splitting based on body content
  2000-08-14 17:18 ` François Pinard
@ 2000-08-14 17:46   ` Alan Shutko
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Shutko @ 2000-08-14 17:46 UTC (permalink / raw)


François Pinard <pinard@iro.umontreal.ca> writes:

> I've been much tempted to do something like this, for SPAM filtering, but
> feel a bit torn out.  Doing from Gnus would be comfortable, as it offers
> a lot of flexibility and configurability, but it would be really slow.

That's why I have a PIII 700.  Personally, I'm not concerned with how
long it takes, because it takes much longer for me to refile these
things by hand.  Also, the way I have my fancy-splitting set up, the
body check is only going to happen for a handful of messages a
day... probably about 1-5% of my daily mail input.

I could do it in procmail, piping it to some script which found the
hdc number and created the appropriate spool file, but it's so easy to
make it create a new group in Gnus.  (Well, for subjects.  It would be
for bodies too.)  But I don't seem to recall that Gnus autosubscribed
groups it found through the procmail spool.

Now, spam filtering should probably be done somewhere else, since you
don't care about autocreating groups and you definately want to scan
all messages for spam, so you're going to see a much bigger hit.

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
88 days, 21 hours, 54 minutes, 28 seconds till we run away.
She's genuinely bogus.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-14 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-10 20:34 Splitting based on body content Alan Shutko
2000-08-14 17:18 ` François Pinard
2000-08-14 17:46   ` Alan Shutko

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).