πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233396

--

#233396
From: _
Date: Sun, 24 May 2009 14:39
67 lines
4014 bytes
ο»ΏI think you ( Rom ) are asking me ( Relf )
how I expire β€œ least watched ” nyms.

The weight of a post diminishes with age ( and crossposting );
so a nym that hasn't made any posts for a long time ( weeks, maybe )
is one of the β€œ least watched ”.

When reBuilding the β€œ Refereces: ” line of a freshly downLoaded post,
each ancestor ( up to the 5 most recent ), going up,
is reSet to the immediate parent of each child ( if known ).

When first downloading a newsGroup, X thousand posts are fetched.
For News.Software.Readers, it's 1 thousand ( about 20 days worth );
for Sci.Physics, it's 4 thousand ( about 12 days worth ).

β€œ Muffled ” nyms aren't allowed more than 3 unRead posts;
beyond that, its ( older ) posts are automatically marked β€œ wasRead ”.
I muffle ( β€œ Nym.Muffle ” ) nyms that:
  A. Aren't in my β€œ Watch ” list ( β€œ !Nym.hardRank ” ), and
  B. Have no ( currently unRead ) replies to me.

No nym is allowed more than 30 wasRead posts;
so, because some nyms post 35 times per day,
half of the posts might get expired this way, right off the bat.

When updating a newsGroup in the β€œ unReadView ”
― to read posts, marking them β€œ wasRead ” ―
posts from the least-watched nyms might get expired, to make room.

For Sci.Physics, this might mean that Least-Watched nyms get expired
about a month after the newsGroup was first downLoaded, to make room.
After that, least-watched nyms might get expired at each update.

>From β€œ www.JeffRelf.F-M.FM/X.CPP ”, the code looks like this:

  //  Sort posts from most to least watched ( grouped by nym, usually ).
  PostsByMostWatched( Ls.BB, Ls.PP );
  if ( unReadView ) {
  
    //  Expire β€œ ToKill ” posts, to make room.
    int  ToKill = (
      cntΒ·Top_Mid_Bot - _cntToMe - cntΒ·Bot ) - Tb_Hit->Max_Normal ;

    //  Loop backwards though all posts, β€œ least watched ” first.
    LoopXxBac( Ls, Ls ) {  List_T &Msg = *P ;  NymT & Nym = *Msg.Nym ;
      
      if ( !Nym.Muffle || Nym.ageOldest < 9 || Msg.Expired )
        //  Don't expire this post because it's from someone who:
        //  A. isn't muffled ( !Nym.Muffle ), or 
        //  B. his oldest post is less than 9 days old.
        continue ;
        
      if ( ToKill <= Nym.Cnt )
        //  Stop expiring;
        //  for each nym, expire all or none of its posts.
        break ;
             
      ToKill --, Nym.Cnt --, Msg.Rig->Cnt -- ;
      Msg.Ser->Cnt --, Msg.Expired = 1, cntΒ·Top_Mid_Bot -- ;
      
      if ( Msg.ToMe )
        //  This info isn't used, update it anyway.
        _cntToMe --, Nym.cntΒ·toMe -- ;
        
      if ( !Nym.Expired )
        //  Expire the nym itself.
        Nym.Expired = 1, CntIgnored ++ ;  } }
Technical Details
Message-ID: <_@Jeff_Relf.Seattle.2009_May24.7.39am.A3>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
References: <_@Jeff_Relf.Seattle.2009_May22.4.37am.r8> <my4i36jxnd2i.1m113kl0nrytx$.dlg@40tude.net> <_@Jeff_Relf.Seattle.2009_May22.11.51pm.ni> <1wzahoc5d6y6t$.15hdj8ri0rn57.dlg@40tude.net> <_@Jeff_Relf.Seattle.2009_May23.5.44pm.gG> <lt18m12cacg5.43ij3u5nfafn$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_May24.7.39am.A3>
Subject: --
Date: Sun, 24 May 2009 14:39:31 +0000
From: _@Jeff_Relf.Seattle.inValid
References: <_@Jeff_Relf.Seattle.2009_May22.4.37am.r8> <my4i36jxnd2i.1m113kl0nrytx$.dlg@40tude.net> <_@Jeff_Relf.Seattle.2009_May22.11.51pm.ni> <1wzahoc5d6y6t$.15hdj8ri0rn57.dlg@40tude.net> <_@Jeff_Relf.Seattle.2009_May23.5.44pm.gG> <lt18m12cacg5.43ij3u5nfafn$.dlg@40tude.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.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
Newsgroups: news.software.readers
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 67
NNTP-Posting-Host: DYHxd9NnOt3EfzXYay/JkA.user.posting2.glorb.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Sun, 24 May 2009 14:39:31 +0000 (UTC)
X-Notice: Scanned by Mr. Bill
User-Agent: JeffRelf.F-M.FM/X.ZIP