Article View: news.software.nntp
Article #53627Re: newsfeed-setup (INN 2.3.2)
From: Russ Allbery
Date: Fri, 03 Aug 2001 01:24
Date: Fri, 03 Aug 2001 01:24
36 lines
2459 bytes
2459 bytes
Matthias Watermann <matthias@oln.comlink.apc.org> writes:
> May be, it's a FAQ?
Yeah, it probably is. I'll try to remember to put something about this
into the INN 2.x FAQ.
> Using "tradspool": How do I setup a newsfeed to have/get a file in
> /var/spool/news/outgoing containing the complete path/name of every
> news-message to process?
> e.g.
> /var/spool/news/articles/news/software/nntp/123
> I've done this with INN 1.x using "Tf,Wfb", but INN 2.3.2 produces lines
> like @050000000052000004040000000000000000@ 1234
> And I (that is: the script that's supposed to handles this, which is
> expecting filesnames) don't know how to handle this.
There isn't any way to convince INN to kick out paths internally since the
guts of INN no longer know anything about paths (intentionally, due to the
abstraction of the storage API interface). There isn't even a way to fake
it up so far as I can see because you can't get the article number out of
newsfeeds. Hm. That's an obvious deficiency that could be fixed.
The right fix from the storage API standpoint is to modify your script to
use sm to open the article rather than opening the file directly; this
will then continue to work even if you switch to CNFS or timecaf or some
other backend that no longer uses a one-article-per-file storage model.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylbslyx7dj.fsf@windlord.stanford.edu>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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<9k8nab$8e3$1@bolzen.all.de>Show Full Headers
Complete Article Headers
Message-ID: <ylbslyx7dj.fsf@windlord.stanford.edu> Subject: Re: newsfeed-setup (INN 2.3.2) Date: Fri, 03 Aug 2001 01:24:56 +0000 From: Russ Allbery <rra@stanford.edu> References: <9k8nab$8e3$1@bolzen.all.de> 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 35 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 996801896 26161 171.64.13.23 (3 Aug 2001 01:24:56 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)