🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #48021

Re: [Tin pre-1.4] how to killfile an author?

#48021
From: 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 (

Technical Details
Message-ID: <7f5a1n$go0$1@starburst.uk.insnet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <7evuos$bqh@cri.ens-lyon.fr> <7f1ms7$2po$1@news.hamburg.pop.de> <48f2a46061Vincent.Lefevre@vinc17.org> <48f2a73558Vincent.Lefevre@vinc17.org>

Show Full Headers
Complete Article Headers
Message-ID: <7f5a1n$go0$1@starburst.uk.insnet.net>
Subject: Re: [Tin pre-1.4] how to killfile an author?
Date: Thu, 15 Apr 1999 00:00:00 +0000
From: Jason <jason@radar.tele3.co.uk>
References: <7evuos$bqh@cri.ens-lyon.fr> <7f1ms7$2po$1@news.hamburg.pop.de> <48f2a46061Vincent.Lefevre@vinc17.org> <48f2a73558Vincent.Lefevre@vinc17.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 466806512
X-Complaints-To: usenet@starburst.uk.insnet.net
X-Trace: starburst.uk.insnet.net 924199799 17152 212.19.64.2 (15 Apr 1999 18:09:59 GMT)
Organization: Galaxy High
User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (Linux/2.2.5 (i586))
Reply-To: jxfaultl@bechtel.com
NNTP-Posting-Date: 15 Apr 1999 18:09:59 GMT
Newsgroups: news.software.readers