🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
16 messages
16 total messages Started by Kim DeVaughn Sat, 07 Dec 1996 00:00
A "procmail" for .newsrc ?
#28183
Author: Kim DeVaughn
Date: Sat, 07 Dec 1996 00:00
30 lines
1808 bytes

I've been getting a bit more serious about eliminating EMP spam and
such from my life, but now I find that my global KILL file has grown
to the point where it can be painfully slow entering a newsgroup
(especially when the system is fairly well loaded).

Does anyone know of a package that will do for my .newsrc file what
procmail does for my email?

I envision something I could run as a cron job, that would read my
KILL file(s), and prune the matching article numbers from my .newsrc
file just as if trn had done it in realtime.

Of course it should do some checking to ensure that I didn't have
trn running when it goes to save the revised .newsrc file, and such.

Seems like a pretty straightforward thing to be doing, and I'm a bit
surprised that I haven't heard of such a background spam-killer before,
now that I think about it, but I haven't.

Does such a beast exist (for UNIX), or must I start hacking bits and
pieces of trn and/or procmail up, and create one?

/kim

===========================================================================
"Old code never dies ... it just waits for the year 2000.  Quietly."   --Me

Re: A "procmail" for .newsrc ?
#28168
Author: spam target - see .sig
Date: Sat, 07 Dec 1996 00:00
43 lines
2311 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In <58c16p$chq@shellx.best.com>,
   kimdv@best.com (Kim DeVaughn) wrote:
|Does anyone know of a package that will do for my .newsrc file what
|procmail does for my email?
|
|I envision something I could run as a cron job, that would read my
|KILL file(s), and prune the matching article numbers from my .newsrc
|file just as if trn had done it in realtime.
|
|Of course it should do some checking to ensure that I didn't have
|trn running when it goes to save the revised .newsrc file, and such.

I don't know anything about rn, but I seem to recall back from the days
when I used to use rn (way back when) that you could run it in a batch
mode, no?

I envision that perhaps I could have had it read, kill-file-process each
group and quit each group (without "c"atching up) so everything removed by
killfiles would me gone.  Then if shortly thereafter you read your news
without any killfiles you'd get (most of) the benefit.

But I don't know if trn can work that way.

	/JBL

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBMqmks12wDVsZVfIVAQHT4QL/SEto1HwKGh+tuq0g4vhPNuk1Wap5cKxF
QiVCGTAqTSZh91eSFwANYZYNz/Y12jcC5Jw2l7A04f5zJBQztMJoz94sZeUljbcn
V9OZp+AQQDs3cEU1aQtD3MzE8O3l6aHi
=0RM3
-----END PGP SIGNATURE-----

-- 
Nets:   levin@bbn.com | Public keys available at
 or  jbl@levin.mv.com |       http://www.mv.com/ipusers/levin/pgpkeys.html
* If you send me abusive or threatening e-mail, I will probably post it. *

Re: A "procmail" for .newsrc ?
#28170
Author: spam target - see .sig
Date: Sat, 07 Dec 1996 00:00
30 lines
1732 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In <32aaa3d6.31991780@news-lnh.mv.net>,
  I made a small goof when I wrote:

|In <58c16p$chq@shellx.best.com>,
|   kimdv@best.com (Kim DeVaughn) wrote:
      [snip]
|I don't know anything about rn, but I seem to recall back from the days
|when I used to use rn (way back when) that you could run it in a batch
|mode, no?

I meant to say that I don't know anything about trn.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBMqmtD12wDVsZVfIVAQGP3QMAm/zTWZGPCkWWV6qNKZ8bvnVwNaTEHeo8
FAwLOOA4xrhqGF40h8D2/VSElm/nKSLxNrdjdxPDvlPM0gYStkUP3vz7vqPWroXA
AE6HfCRBuU2dvJad5tF/XTk8c/Njy2Ve
=ymbq
-----END PGP SIGNATURE-----

-- 
Nets:   levin@bbn.com | Public keys available at
 or  jbl@levin.mv.com |       http://www.mv.com/ipusers/levin/pgpkeys.html
* If you send me abusive or threatening e-mail, I will probably post it. *

Re: A "procmail" for .newsrc ?
#28172
Author: Tim Skirvin
Date: Sat, 07 Dec 1996 00:00
15 lines
1141 bytes
kimdv@best.com (Kim DeVaughn) writes:

>Does anyone know of a package that will do for my .newsrc file what
>procmail does for my email?

	NoCeM.  http://www.nocem.org/

				- Tim Skirvin (tskirvin@uiuc.edu)
--
<a href="http://www.uiuc.edu/ph/www/tskirvin">Skirv's Homepage</a>
<a href="http://www.uiuc.edu/ph/www/tskirvin/daemons/">The Dungeon</a>


trnkill (was Re: A "procmail" for .newsrc ?)
#28174
Author: Conrad Sabatier
Date: Sat, 07 Dec 1996 00:00
55 lines
2422 bytes
In article <58c16p$chq@shellx.best.com>,
	kimdv@best.com (Kim DeVaughn) writes:
> 
> I've been getting a bit more serious about eliminating EMP spam and
> such from my life, but now I find that my global KILL file has grown
> to the point where it can be painfully slow entering a newsgroup
> (especially when the system is fairly well loaded).
> 
> Does anyone know of a package that will do for my .newsrc file what
> procmail does for my email?
> 
> I envision something I could run as a cron job, that would read my
> KILL file(s), and prune the matching article numbers from my .newsrc
> file just as if trn had done it in realtime.
> 
> Of course it should do some checking to ensure that I didn't have
> trn running when it goes to save the revised .newsrc file, and such.

Have you tried trnkill?

#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created for rn by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d	debug mode -- you see all gory action as it happens.

# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNMACRO RNMACRO TERM
TRNMACRO=/tmp/trnkill$$
TERM=dumb
# support for trn 2.x
RNMACRO=$TRNMACRO
OPTIONS='-q -s -T -t -x +X ++'
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
cat >$TRNMACRO <<'EOF'
z  %(%m=[nf]?.q^J:n)^(z^)
^m ^(z^)
^j ^(z^)
EOF
if test X$1 = X-d; then
	echo "z" | trn $OPTIONS
else
	echo "z" | trn $OPTIONS >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0

-- 
Conrad Sabatier                  | 
conrads@neosoft.com              |  Eschew obfuscation.
http://www.neosoft.com/~conrads  | 


Re: trnkill (was Re: A "procmail" for .newsrc ?)
#28208
Author: Conrad Sabatier
Date: Sun, 08 Dec 1996 00:00
26 lines
1579 bytes
[Posted and mailed]

In article <58d671$dfh@starbase.neosoft.com>,
	claire@Starbase.NeoSoft.COM (Claire) writes:
> In article <58cumq$1sa@uuneo.neosoft.com>,
> Conrad Sabatier <conrads@neosoft.com> wrote:
> 
> 
> Do I just put this in my /bin and make it executable and type this
> before I go into trn??

You can put it anywhere you like, really.  Mine's in ~/.trn/support.

You can't run the script *and* trn at the same time, as the script
actually invokes one instance of trn itself, and trn won't allow two
instances of itself to be active.  So, if you plan to use it, it's
probably best to run it during off-hours as a cron job.

-- 
Conrad Sabatier                  | 
conrads@neosoft.com              |  Eschew obfuscation.
http://www.neosoft.com/~conrads  | 


Re: A "procmail" for .newsrc ?
#28243
Author: Conrad Sabatier
Date: Mon, 09 Dec 1996 00:00
26 lines
1583 bytes
In article <58hlj6$4u@spruce.citicorp.com>,
	pnaaba@avp.pbz (Xriva Znegva) writes:
> In article <ANSSI.SAARI.96Dec9151907@yelws47.lmf.ericsson.se.NOSPAM>,
>    Anssi.Saari@lmf.ericsson.se.NOSPAM (Anssi Saari) wrote:
> 
> [ Re: trnkill ]
> 
> The idea is to run it just before you start up uqwk or the equivalent
> to build a packet of news for download.  Runs quite quickly, so I don't
> see any benefit trying to make it a cron job to run at 02:00.

Well, that depends.  If you're running it under a shell account on a
well-connected ISP (T1 or better), or using a local newsspool, then yes,
it would run rather quickly.

If, however, you're running it over a dialup SLIP/PPP connection at 28.8K
or lower, it takes quite a while.

-- 
Conrad Sabatier                  | 
conrads@neosoft.com              |  Eschew obfuscation.
http://www.neosoft.com/~conrads  | 


Re: A "procmail" for .newsrc ?
#28248
Author: Xriva Znegva
Date: Mon, 09 Dec 1996 00:00
26 lines
1737 bytes
In article <ANSSI.SAARI.96Dec9151907@yelws47.lmf.ericsson.se.NOSPAM>,
   Anssi.Saari@lmf.ericsson.se.NOSPAM (Anssi Saari) wrote:

>I've heard of trnkill, which I understand is a script that runs trn
>with your killfile and .newsrc. I don't know where to get, I think I
>read about it in alt.usenet.offline-reader.

http://www.nic.com/~cannon/trnkill.html   (I didn't write it, Wayne
Borland et. al. did -- I'm just giving it a home.)

The idea is to run it just before you start up uqwk or the equivalent
to build a packet of news for download.  Runs quite quickly, so I don't
see any benefit trying to make it a cron job to run at 02:00.

The page also includes pointers to the official (t)rn killfile faq and 
two independently-written example pages; you can never have too many
examples! (Covers stuff such as how to kill articles crossposted
to more than 'n' groups, etc.)  Enjoy!

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Re: A "procmail" for .newsrc ?
#28256
Author: Larry W. Virden
Date: Tue, 10 Dec 1996 00:00
31 lines
2187 bytes

According to Conrad Sabatier <conrads@neosoft.com>:
:In article <58hlj6$4u@spruce.citicorp.com>,
:	pnaaba@avp.pbz (Xriva Znegva) writes:
:> In article <ANSSI.SAARI.96Dec9151907@yelws47.lmf.ericsson.se.NOSPAM>,
:>    Anssi.Saari@lmf.ericsson.se.NOSPAM (Anssi Saari) wrote:
:> 
:> [ Re: trnkill ]
:> 
:> The idea is to run it just before you start up uqwk or the equivalent
:> to build a packet of news for download.  Runs quite quickly, so I don't
:> see any benefit trying to make it a cron job to run at 02:00.
:
:Well, that depends.  If you're running it under a shell account on a
:well-connected ISP (T1 or better), or using a local newsspool, then yes,
:it would run rather quickly.
:
:If, however, you're running it over a dialup SLIP/PPP connection at 28.8K
:or lower, it takes quite a while.

If you have a lot of newsgroups, or newsgroups with a lot of articles,
and you have a lot of kill subjects, it takes a long time as well - several
hours for mine to run...
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Re: A "procmail" for .newsrc ?
#28266
Author: Larry W. Virden
Date: Tue, 10 Dec 1996 00:00
18 lines
1384 bytes

According to Tim Skirvin <tskirvin@uiuc.edu>:
:kimdv@best.com (Kim DeVaughn) writes:
:
:>Does anyone know of a package that will do for my .newsrc file what
:>procmail does for my email?
:
:	NoCeM.  http://www.nocem.org/

I get an unknown host on this www.nocem.org name...
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Re: A "procmail" for .newsrc ?
#28277
Author: karl mamer
Date: Tue, 10 Dec 1996 00:00
25 lines
1639 bytes
Conrad Sabatier wrote:

> > The idea is to run it just before you start up uqwk or the equivalent
> > to build a packet of news for download.  Runs quite quickly, so I don't
> > see any benefit trying to make it a cron job to run at 02:00.
> 
> Well, that depends.  If you're running it under a shell account on a
> well-connected ISP (T1 or better), or using a local newsspool, then yes,
> it would run rather quickly.
> 
> If, however, you're running it over a dialup SLIP/PPP connection at 28.8K
> or lower, it takes quite a while.

Agreed. But the problem with running it at a fixed time is if you want
to be as spam free as possible, you've got to run it shortly before
you build your qwk packet. On some groups, you'll see five new
spams come in an hour or two.


-- 
"Yes, take your cue from Mr Mamer, the professional antagonist."
                    -- John Lauzon <bk469@freenet.toronto.on.ca>

Re: A "procmail" for .newsrc ?
#28278
Author: Tim Skirvin
Date: Tue, 10 Dec 1996 00:00
19 lines
1342 bytes
lwv26@cas.org (Larry W. Virden) writes:

>:>Does anyone know of a package that will do for my .newsrc file what
>:>procmail does for my email?
>:
>:	NoCeM.  http://www.nocem.org/

>I get an unknown host on this www.nocem.org name...

	Daah.  I'm a moron.  http://www.cm.org/ works a hell of a lot
better...

				- Tim Skirvin (tskirvin@uiuc.edu)
--
<a href="http://www.uiuc.edu/ph/www/tskirvin">Skirv's Homepage</a>
<a href="http://www.uiuc.edu/ph/www/tskirvin/daemons/">The Dungeon</a>

Re: A "procmail" for .newsrc ?
#28280
Author: Xriva Znegva
Date: Tue, 10 Dec 1996 00:00
37 lines
2157 bytes
In article <58i8ku$g9t@uuneo.neosoft.com>,
   conrads@neosoft.com (Conrad Sabatier) wrote:

>Well, that depends.  If you're running it under a shell account on a
>well-connected ISP (T1 or better), or using a local newsspool, then 
>yes, it would run rather quickly.
>
>If, however, you're running it over a dialup SLIP/PPP connection at 
>28.8K or lower, it takes quite a while.

To clarify, I'd only run trnkill from a shell account, where the host 
and the newsspool are together in one place.  The speed of one's 
connection to the host is irrelevant to trnkill, in such a case.

The whole point of uqwk is to do the work on the machine closest 
to the newsspool, and then download the resulting compressed packets 
over the slowest part of the link.  Running trnkill fits into that
scenario perfectly.

If the bottleneck is between your local shell and your newsspool,
(sounds like the old UUCP days, now that I think about it...!)
I don't think trnkill or uqwk is appropriate at all.  You might 
look into Chin Huang's Souper, which also creates SOUP packets 
but works against a remote newsspool over a Winsock connection.
It filters as it downloads using "scoring" logic rather than a 
trn-style KILLfile approach.

PS I feel like an idiot for calling Wayne Davison "Wayne Borland."
Hope he didn't see it; or if he did, that he forgives me!

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Re: A "procmail" for .newsrc ?
#28316
Author: Xriva Znegva
Date: Wed, 11 Dec 1996 00:00
43 lines
2605 bytes
[We're still talking about trnkill - if you think you need it, see 
http://www.nic.com/~cannon/trnkill.html for an explanation of what
it is and/or to get a copy.]

In article <58jtve$g03@srv13s4.cas.org>,
   lwv26@cas.org (Larry W. Virden) wrote:

>If you have a lot of newsgroups, or newsgroups with a lot of articles,
>and you have a lot of kill subjects, it takes a long time as well - 
>several hours for mine to run...

"*Choke!* Good Lord!"

Are you perhaps building a local newsbase for multiple users (e.g. an 
intranet or a BBS)?  I mean, there ain't no way I'm ever going to read 
THAT much news!  This is NOT to say that you don't have a legitimate 
reason for sucking that much news; but there comes a time to put down 
the scalpel and pick up the chainsaw!  (I'm curious about your 
situation, and boggling at the concept of using ANY program that reads
a .newsrc file to get that much news.  I would have looked into getting 
a regular newsfeed into a Linux box before my trnkill run reached even 
one hour, let alone "several.")

Also, if you have any rules that kill on article bodies rather than 
headers, you'll do yourself a favor if you figure out another approach. 
The overhead of searching bodies is orders of magnitude higher.  You 
could compare two groups and match up the subject lines, for example,
more quickly than you could scan all the article bodies in ONE group!

Heck, I feel "sloppy" because I haven't yet gone through my rules 
and rewritten them to use only the newer syntax for the indexed 
headers.  That's something else that might make a big difference 
to you -- have you looked at the trn KILLfile FAQ recently?

Hope this helps.

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Re: A "procmail" for .newsrc ?
#28451
Author: arthur wouk
Date: Mon, 16 Dec 1996 00:00
10 lines
1016 bytes
 trnkill is great if you are downloading your news, but if you read
the news at the ISP site (as i do), it doesn't save any time 
at all. now if there were only a kill program which spee1ded up the
threading process!
-- 
--
If we can't fix it, it ain't broke.

Re: A "procmail" for .newsrc ?
#28458
Author: David Ripton
Date: Tue, 17 Dec 1996 00:00
21 lines
1345 bytes
In article <5943i4$eju@nyx10.cs.du.edu>,
arthur wouk <awouk@nyx10.cs.du.edu> wrote:
> trnkill is great if you are downloading your news, but if you read
>the news at the ISP site (as i do), it doesn't save any time 
>at all. 

If you run trnkill non-interactively in the wee hours, shouldn't 
that speed up your on-the-fly killing by making sure you only
have process really new posts while you wait?

>now if there were only a kill program which spee1ded up the
>threading process!

That would be nice.

-- 
David Ripton   dripton@netcom.com  
Speak softly and carry a big killfile.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads