🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #48040

Re: Slrn: marking article/thread read without moving to next unread?

#48040
From: s... Srinivasa SA
Date: Thu, 15 Apr 1999 00:00
59 lines
2294 bytes
On 14 Apr 1999 07:16:50 GMT, Heikki Kantola <he...@iki.fi> wrote:
>Peppe <c92...@student.dtu.dk> informed
>news.software.readers with the following:
>>Thus wrote Heikki Kantola <he...@iki.fi>
>>> Ok, after those hints, I managed to create the macro and in case
>>> somebody else is also interested in it, here it is in its full glory:


I was searching for the thread-kill function for slrn in the
newsgroup and found yours:

But the macro you gave didn't work. 
Any hints?

The error msg:

~~~~~~~~~~~~
$slrn
slrn 0.9.4.3 (Sep 16 1998 00:18:17)
Reading startup file /usr/lib/slrn/slrn.rc.
Reading startup file /home/sas/.slrnrc.
S-Lang Error: define: invalid command.: Unknown Error.
slrn fatal error:
/home/sas/.slrnrc: Error encountered processing line 8
define mark_thread_read()
~~~~~~~~~~~~

I put the following code in .slrnrc:

%
% mark article/thread read without jumping to next unread.
% From: he...@iki.fi (Heikki Kantola)
% Date: 13 Apr 1999 09:10:15 GMT
%
define mark_thread_read() 
{
	variable status;

	if (is_group_mode ())
	error (_function_name () + " doesn't work in group mode!");
	set_header_flags(HEADER_READ);
	if(thread_size() > 1) 
	{
		uncollapse_thread ();
		loop(thread_size() - 1) 
		{
			() = header_down(1);
			set_header_flags(HEADER_READ);
		} 
		collapse_thread ();
	}
}
definekey("mark_thread_read","D","article");

% end of mark_thread_read


Technical Details
Message-ID: <slrn7hac9a.upb.sas@hpprobe.div111.bell-labs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> <slrn7h472c.6d.c928400@urdybet.pbk.dk> <slrn7h4883.or7.davis@aluche.mit.edu> <slrn7h62fn.s3k.hezu@tuuri.ling.helsinki.fi> <slrn7h6vl6.103.c928400@urdybet.pbk.dk> <slrn7h8g72.8s3.hezu@tuuri.ling.helsinki.fi>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7hac9a.upb.sas@hpprobe.div111.bell-labs.com>
Subject: Re: Slrn: marking article/thread read without moving to next unread?
Date: Thu, 15 Apr 1999 00:00:00 +0000
From: s...@hpprobe.div111.bell-labs.com (Srinivasa SA)
References: <slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> <slrn7h472c.6d.c928400@urdybet.pbk.dk> <slrn7h4883.or7.davis@aluche.mit.edu> <slrn7h62fn.s3k.hezu@tuuri.ling.helsinki.fi> <slrn7h6vl6.103.c928400@urdybet.pbk.dk> <slrn7h8g72.8s3.hezu@tuuri.ling.helsinki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 466510092
Organization: Lucent Technologies, Columbus, Ohio
Newsgroups: news.software.readers,alt.lang.s-lang