๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Vincent Lefevre Tue, 13 Apr 1999 00:00
[Tin pre-1.4] how to killfile an author?
#47978
Author: Vincent Lefevre
Date: Tue, 13 Apr 1999 00:00
14 lines
1249 bytes
How can I killfill an author with tin pre-1.4 (the lastest version)?
In particular, what score should be used? I've tried
  score=-10000
and
  score=kill
but neither of them work: I can still see the articles from the author.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#47989
Author: Vincent Lefevre
Date: Wed, 14 Apr 1999 00:00
31 lines
1698 bytes
In article <7f1ms7$2po$1@news.hamburg.pop.de>,
   Urs Jan๏ฟฝen <urs@buil.tin.org> wrote:

> #[regexp match]
> group=news.software.readers
> type=0
> case=1
> score=kill
> from=vincent\.lefevre\@ens-lyon\.fr

tin doesn't use a '\' in front of '@'.

> #[wildcard match]       
> group=news.software.readers
> type=0
> case=1
> score=kill
> from=*vincent.lefevre@ens-lyon.fr*

I've tried both, but they don't work.

I've also tried after removing the cached index in .tin/.news, but this
doesn't change anything.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#47999
Author: greg
Date: Wed, 14 Apr 1999 00:00
23 lines
1868 bytes
vlefevre+news@ens-lyon.fr wrote:
>Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

>> I've tried both, but they don't work.

> Hmm... OK, this only works with *new* articles. Is there a way to make
> filters work with old (read) articles?

I don't think tin's threading code distinguishes between killed and read
articles.  Confine your reading to new articles and you won't see the
killed threads.  Use the <tab> key to start reading a thread with the
first unread article.

It would take more coding to hide killed articles completely from your
sight and still thread articles correctly.

-- 
Nine quadrillion, nine hundred ninety-nine trillion, nine hundred ninety-nine
billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand,
eight hundred eleven bottles of beer.  You take one down, pass it around, nine
quadrillion, nine hundred ninety-nine trillion, nine hundred ninety-nine

Re: [Tin pre-1.4] how to killfile an author?
#48006
Author: Vincent Lefevre
Date: Wed, 14 Apr 1999 00:00
15 lines
1314 bytes
In article <48f2a46061Vincent.Lefevre@vinc17.org>,
   Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

> I've tried both, but they don't work.

Hmm... OK, this only works with *new* articles. Is there a way to make
filters work with old (read) articles?

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#48013
Author: Vincent Lefevre
Date: Wed, 14 Apr 1999 00:00
23 lines
1737 bytes
In article <greg-1404991056470001@192.168.0.4>,
  greg@apple2.com wrote:

> I don't think tin's threading code distinguishes between killed and read
> articles.

It does. When an article is killed, you won't see it, even if you show
read articles.

>  Confine your reading to new articles and you won't see the
> killed threads.  Use the <tab> key to start reading a thread with the
> first unread article.

I often read old threads, where articles are marked as read. And
I don't want to see killed articles.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#48021
Author: Jason
Date: Thu, 15 Apr 1999 00:00
60 lines
2940 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:
> Hmm... OK, this only works with *new* articles. Is there a way to make
> filters work with old (read) articles?

Not currently. Try the following patch. It forces all articles to be filtered
and supresses threading of killed articles. If it works for you, I can make
it more configurable. tin-1.22 used to have this feature ('kill_level') but
it disappeared sometime prior to 1995.

Jason.

diff -ur tin-19990413/src/filter.c dev/src/filter.c
--- tin-19990413/src/filter.c	Mon Mar 29 09:37:22 1999
+++ dev/src/filter.c	Thu Apr 15 16:43:55 1999
@@ -1415,8 +1415,10 @@
 	 */
 	for (i = 0; i < top; i++) {
 		arts[i].score = 0;
+#if 0
 		if (IS_READ(i)) /* skip only when the article is read */
 			continue;
+#endif
 
 		for (j = 0; j < num; j++) {
 			if (ptr[j].inscope) {
@@ -1753,6 +1755,7 @@
 	for (i = 0; i < top; i++) {
 		if (arts[i].score <= SCORE_LIM_KILL) {
 			arts[i].killed = TRUE;
+			num_of_killed_arts++;
 			filtered = TRUE;
 			art_mark_read (group, &arts[i]);
 		} else if (arts[i].score >= SCORE_LIM_SEL) {
diff -ur tin-19990413/src/newsrc.c dev/src/newsrc.c
--- tin-19990413/src/newsrc.c	Mon Mar 29 09:37:23 1999
+++ dev/src/newsrc.c	Thu Apr 15 16:42:51 1999
@@ -1342,9 +1342,6 @@
 			if (group != (struct t_group *) 0 && group->newsrc.num_unread)
 				group->newsrc.num_unread--;
 
-			if (art->killed)
-				num_of_killed_arts++;
-
 			if (art->selected && num_of_selected_arts)
 				num_of_selected_arts--;
 
diff -ur tin-19990413/src/refs.c dev/src/refs.c
--- tin-19990413/src/refs.c	Thu Mar 18 11:40:25 1999
+++ dev/src/refs.c	Thu Apr 15 16:52:07 1999
@@ -620,7 +620,7 @@
 
 #define SKIP_ART(ptr)	\
 	(ptr && (ptr->article == ART_UNAVAILABLE || \
-		(arts[ptr->article].thread != ART_NORMAL /*|| arts[ptr->article].killed*/)))
+		(arts[ptr->article].thread != ART_NORMAL || arts[ptr->article].killed)))
 
 static struct t_msgid *
 find_next (

Re: [Tin pre-1.4] how to killfile an author?
#48026
Author: Vincent Lefevre
Date: Thu, 15 Apr 1999 00:00
17 lines
1632 bytes
In article <7f5a1n$go0$1@starburst.uk.insnet.net>,
  Jason <jason@radar.tele3.co.uk> wrote:

> Not currently. Try the following patch. It forces all articles to be filtered
> and supresses threading of killed articles. If it works for you, I can make
> it more configurable. tin-1.22 used to have this feature ('kill_level') but
> it disappeared sometime prior to 1995.

Yes, it seems to work. Thanks a lot!

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#48034
Author: Vincent Lefevre
Date: Thu, 15 Apr 1999 00:00
15 lines
1376 bytes
In article <greg-1504990006300001@192.168.0.4>,
   <greg@apple2.com> wrote:

> That makes sense.  Why kill a dead article?

I've said this: I often read old threads, and I have to display all the
read articles.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.

Re: [Tin pre-1.4] how to killfile an author?
#48037
Author: greg
Date: Thu, 15 Apr 1999 00:00
36 lines
2599 bytes
In article <7f2ghe$mo5$2@news.hamburg.pop.de>,
Urs =?iso-8859-1?Q?Jan=DFen?= <urs@buil.tin.org> wrote:
>Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

>> Hmm... OK, this only works with *new* articles.

> sure - killing in tin is marking the article as read and refuse to
> display it inside the group level till you leave the group level - if
> you reenter you'll see it as read article.

>> Is there a way to make filters work with old (read) articles?

> the filter code currently skips read articles (for speed reasons) ->
> no.

That makes sense.  Why kill a dead article?  Re-killing all articles would
slow things down dramatically, and coding it so that only read articles in
threads that still have unread articles are re-killed would be a difficult
task of IMO limited reward.  (Does tin thread then kill, or kill before
threading?  The latter would make this more difficult, but the former
would give more accurate threading results anyway, and you could expand
the scope of the filtering in a more controlled manner.)

Keeping a secondary record of killed files would require more than is
allowed in the newsrc file syntax.  That means another file to maintain.

No, I'm not offering my services.  I have my own projects (with deadlines)
to be concerned with.

-- 
Nine quadrillion, nine hundred ninety-nine trillion, nine hundred ninety-nine
billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand,
eight hundred eight bottles of beer.  You take one down, pass it around, nine
quadrillion, nine hundred ninety-nine trillion, nine hundred ninety-nine

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