🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51301

Re: Tracing to which CYCbuf a posting went?

#51301
From: those who know me have no need o...
Date: Sun, 18 Mar 2001 14:42
44 lines
2514 bytes
<2001Mar18.091507@hujicc> divulged:

>  I am using CYCbufs for all my news storage, and have a few groups for
>specific trees. For one specific tree I have a small CYCbuf (very low
>usage, but need long retention). However, when posting to groups in this
>tree I don't see anything new in the relevant cycbuf (using cnfsstat);
>hence, I guess the articles are stored in another CYCbuf (probably the
>one for newsgroups * which is the last in storage.conf). Any idea how I
>can trace where a posted article goes?

you can see where an article is stored by looking at the token, e.g., the 
result of a grephistory.  the first two characters are the class in hex, 
and in the case of cycbuff storage the name of the cycbuff begins at the 
6th character and ends at the first nul.

why is it where it is?  i'm not aware of any simple mechanism to trace the 
storage logic, at least not on a live server.  on a test server you can 
compile with symbols and use a symbolic debugger.  so, you'll just have to 
read your storage.conf carefully.  perhaps you put a size constraint on the 
class and the article exceeds it.  remember that first match is used, both 
when matching newsgroups and when processing the methods.  the newsgroups 
line is processed left to right and as soon as a newsgroup matches any 
pattern in the storage.conf the article is stored according to the first 
matching method's entry.  e.g., 

method cnfs {
  newsgroups: comp.*
  class: 5
  options: big8
}

method cnfs {
  newsgroups: *binaries*
  class: 8
  options: bins
}

an article with a newsgroups header of "comp.binaries.foo,alt.binaries.foo" 
will be stored in big8, but a newsgroups header of 
"alt.binaries.foo,comp.binaries.foo" will be stored in bins.

-- 
okay, have a sig then
Technical Details
Message-ID: <tb9iai4hqeq4f8@news.supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail
References: <2001Mar18.091507@hujicc>

Show Full Headers
Complete Article Headers
Message-ID: <tb9iai4hqeq4f8@news.supernews.com>
Subject: Re: Tracing to which CYCbuf a posting went?
Date: Sun, 18 Mar 2001 14:42:26 -0000
From: not-a-real-address@usa.net (those who know me have no need of my name)
References: <2001Mar18.091507@hujicc>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: earthfriends
User-Agent: Xnews/4.01.30
X-Complaints-To: newsabuse@supernews.com
Lines: 43