🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3219

Re: TIN: Partial Clear

#3219
From: Philippe Goujard
Date: Fri, 29 Jan 1993 01:27
54 lines
2385 bytes
Howard Wilson (stile@okcforum.osrhe.uoknor.edu) wrote:
> 
> If the help file explains how, I can't see it.
>  
> Is there a way to mark some files as read, while leaving others unread?
> Sort of like a "Clear messages 1-100, but leave the reast alone"-type thing?
> This is the ONE thing I miss from rn.  Other than that, tin beats it with
> a stick.  For those that don't understand (I seem to have problems putting
> down thoughts well today) I mean the rn command "1-100j", is there a way
> do to this with TIN?
>  
> Howard Wilson II

I am doing that at the moment, I have one problem though, I do not find the 
number of the current article. I know the number of the top article is in 
the variable "top" but I do not know which variable holds the number of the 
currect article. Anyway, assuming this number is in "respnum" this is what 
the code should look like :

    wait_message (txt_mark_all_read);
    ch2 = ReadCh();
    switch(ch2)
    {
     case 'c': /* Current article */
      nmax=respnum;
      printf ("nmax=%d\n",nmax);
      break;

     case 'a': /* All */
      nmax=top;
      printf ("top=nmax=%d\n",nmax);
      break;
     
     default:
      nmax=0;
      break;
    }
    if (nmax)
    {
     for (n = 0; n < nmax; n++) 
     {
         arts[n].unread=ART_READ;
     }
     etc...
     
     You need to modify page.c and group.c 
     In lang.c I have also redifined txt_mark_all_read by :
     "Mark articles as read : (a)ll - up to the (c)urrent - (q)uit ? :"

Hope this helps,

-- 
Philippe Goujard <Sysop>                   Email : pgoujard@infocom.UUCP
       Infocom : Public Usenet access in the UK - (0734) 34 00 55
Technical Details
Message-ID: <696@infocom.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!doc.ic.ac.uk!uknet!infocom!pgoujard
References: <C1ALqx.CG@darkside.osrhe.uoknor.edu>

Show Full Headers
Complete Article Headers
Message-ID: <696@infocom.co.uk>
Subject: Re: TIN: Partial Clear
Date: Fri, 29 Jan 1993 01:27:50 +0000
From: pgoujard@infocom.co.uk (Philippe Goujard)
References: <C1ALqx.CG@darkside.osrhe.uoknor.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!doc.ic.ac.uk!uknet!infocom!pgoujard
Newsgroups: news.software.readers
Organization: INFOCOM Public Unix Server, +44 [0] 734 340055
Lines: 54
X-Newsreader: TIN [version 1.1 PL7]