Article View: news.software.readers
Article #233394--
From: _
Date: Sun, 24 May 2009 00:44
Date: Sun, 24 May 2009 00:44
87 lines
4927 bytes
4927 bytes
You ( Rom ) told me ( Relf ):
“ If we (TINW), say, deleted your MIDs from References in
(indirect) followups or no one (indirectly) replied,
it could be fun to toy with your Whatchamacallit lists
and see how long you extend the time frame. ”.
Toying with the “ Refereces: ” line like that wouldn't work.
When reBuilding the “ Refereces: ” line of a freshly downLoaded post,
the immediate parent is the most trustworthy ( by far ),
so X.ZIP uses that parent whenever possible.
>From www.JeffRelf.F-M.FM/X.CPP, the code looks like this:
int cnt·MIDs = Ls.PP - Ls.BB ; LsA B_MIDs, E_MIDs ;
E_MIDs = B_MIDs = ( LsA ) MallocTmp ( rv = ( cnt·MIDs + 1 ) * szPtr );
memmove( B_MIDs, Ls.BB, rv ); E_MIDs += cnt·MIDs ;
// Sort a copy of all Message-IDs by ASCII rank.
MIDsByASCII( B_MIDs, E_MIDs );
{ LoopXx ( Ls, Ls ) {
// Looping though all articles in the newsGroup.
List_T &Msg = *P ; MIDT *pParent = &Msg.H.L0 ;
// “ mxDepth == 5 ”, the number of ancestors to remember.
{ Loop ( mxDepth ) {
// Move up the list of ancestors, youngest first.
MIDT &Parent = * -- pParent ; if ( ! Parent.MID ) break ;
LsA BB = B_MIDs, EE = E_MIDs, PP ; LsP pTrusted = 0 ;
LOOP {
// Do a binary search for Parent.MID's struct;
// “ pTrusted ” holds the result.
PP = BB + ( EE - BB ) / 2 ;
LsP P = * PP ; HeaderT & H = P->H ;
rv = StrCmp( H.L0.MID, Parent.MID );
if ( ! rv ) { pTrusted = P ; break ; }
if ( rv > 0 ) {
if ( PP >= EE ) break ; BB = PP + 1 ; continue; }
if ( PP <= BB ) break ; EE = PP - 1 ; }
if ( pTrusted && !Parent.Nym )
// Set the nym ( name ) of the immediate parent.
Parent.Nym = pTrusted->Nym->Name ;
if ( Msg.Cat == Cat_Mid && myMID( Parent ) ) {
// This post is a reply to me or one of my proxies.
Msg.ToMe = 1 ;
if ( New_TXT && Msg.AgeDays >= daysAway )
// downLoading a newsGroup for the first time and
// this reply is older than “ daysAway == 1 ”...
// Mark it “ wasRead ”.
Msg.wasRead = 1 ;
if ( !Msg.wasRead )
// Sorted this post to the top.
// While this post is “ unRead ”, “ has·nonMid = 1 ”,
// so its nym has unlimited unReads.
Msg.Nym->has·nonMid = 1, Msg.Cat = Cat_Top ; }
Msg.Elders[ Msg.cnt·Ances ++ ] = pTrusted ;
if ( !Msg.FromDisk
&& J < mxDepth - 1 && pTrusted && pTrusted->H.L1.MID ) {
// “ Msg ” is a freshly downLoaded post,
// reBuild the “ Refereces: ” line,
// set the next-oldest ancestor to the immediate parent.
pParent[ -1 ] = pTrusted->H.L1 ; } } } } }
// _@YerNym7Bit.YerCity.2009_May10.7.33pm.4R
const int sz•mPrefix = 2 ;
int myMID( LnP MID ) {
// It's me when the post's Message-ID begins: “ _@Jeff_Relf ”.
return EqN( MID + sz•mPrefix, YerNym7Bit, Sz_YerNym7Bit ); }
int myMID( MIDT & Parent ) { LnP N = Parent.Nym ;
return myMID( Parent.MID ) || N && (
// To track replies to my proxies, as if they were replies to me,
// it's also me when Nym is nymProxy or nymProxy2.
nymProxy && Eq( N, nymProxy ) || nymProxy2 && Eq( N, nymProxy2 ) );
}
Technical Details
Message-ID:
<_@Jeff_Relf.Seattle.2009_May23.5.44pm.gG>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.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!xlned.com!feeder1.xlned.com!hamilton.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mailReferences:
<_@Jeff_Relf.Seattle.2009_May21.4.34pm.E6> <evk2tobq023f.qtwrennn3an9$.dlg@40tude.net> <_@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>Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_May23.5.44pm.gG> Subject: -- Date: Sun, 24 May 2009 00:44:16 +0000 From: _@Jeff_Relf.Seattle.inValid References: <_@Jeff_Relf.Seattle.2009_May21.4.34pm.E6> <evk2tobq023f.qtwrennn3an9$.dlg@40tude.net> <_@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> 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.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!xlned.com!feeder1.xlned.com!hamilton.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!nx01.iad01.newshosting.com!newshosting.com!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: 87 NNTP-Posting-Host: RrJrRPd0oFAvDi4zK0vSAw.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 00:44:16 +0000 (UTC) X-Notice: Scanned by Mr. Bill User-Agent: JeffRelf.F-M.FM/X.ZIP