9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] question on mail/setup.bayes and existing pipeto
@ 2006-04-24 13:37 Robert Raschke
  2006-04-25 14:11 ` Robert Raschke
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Raschke @ 2006-04-24 13:37 UTC (permalink / raw)
  To: 9fans

Hi,

I want to start using the bayes filtering for spam.  I also have a
pipeto for splitting apart my incoming mail stream according to
mailing list (and such) like this:

	rfork ne
	/bin/upas/filter $1 $2 \
		'.*lua-bounces.*' /mail/box/rtr/lua \
		'.*owner-erlang-questions.*' /mail/box/rtr/erlang \
		'.*9fans-bounces.*' /mail/box/rtr/plan9 \
		'bootes' /mail/box/rtr/fossil \

Do I replace the bayesian pipeto line

	spool /mail/box/$USER/mbox

with the upas/filter above? Or is there a different recommended way?

Thanks for any advice,
Robby



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

* Re: [9fans] question on mail/setup.bayes and existing pipeto
  2006-04-24 13:37 [9fans] question on mail/setup.bayes and existing pipeto Robert Raschke
@ 2006-04-25 14:11 ` Robert Raschke
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Raschke @ 2006-04-25 14:11 UTC (permalink / raw)
  To: 9fans

I wrote around Mon Apr 24 14:38:36 BST 2006:
> I want to start using the bayes filtering for spam.  I also have a
> pipeto for splitting apart my incoming mail stream according to
> mailing list (and such) like this: [...snip...]

I think I've figured out how to do this.  After I ran setup.bayes, I
had a new pipeto and my old one in pipeto.0.  By changing my standard
bayes pipeto from

[...snip...]
if(isspam)
	spool-tagged-spam
if not
	spool /mail/box/$USER/mbox
exit 0

to

[...snip...]
if(isspam)
	spool-tagged-spam
if not
	pipe /mail/box/$USER/pipeto.0 $*
exit 0

I get my old behaviour back.

Robby



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

end of thread, other threads:[~2006-04-25 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-24 13:37 [9fans] question on mail/setup.bayes and existing pipeto Robert Raschke
2006-04-25 14:11 ` Robert Raschke

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