🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54444

Piping an article to a program via newsfeeds

#54444
From: Anne Wilson
Date: Sat, 29 Sep 2001 22:09
62 lines
3335 bytes
Hello,

I am trying to send an article to a program I wrote via an entry in the
newsfeeds file.  Being a newbie, it's not going the way I expected.  

The article is a binary file that I encoded for transmission.  The
program currently reads from stdin.  This has generated a few questions
for me.

First, what is the difference between Tc and a Tp?  When should I use
one or the other?  When I use Tp, I see that the input that my program
is getting is something like: XR^U@XR^U@��^��^��^... When I use Tc, the
input is something like @0301484453000000000...  


Second, I'm getting the idea that I must use the sm to actually get the
article.  Is there any other way?  In searching the archives, I found
the following question:

       I have a feature request for INN: add a new parameter to the W
flag to
       cause the entire article to be written to the site
channel/file/etc.
       There's already WH to send the headers.

       We have a locally written script that reposts locally posted
articles to a
       specific newsgroup so admins can keep an eye on postings
originating from
       our news server.  When I upgraded to 2.x the move to storageapi
and CNFS
       broke the script.  I've rewritten it to use sm to fetch articles,
but it
       would make more sense to have innd simply send the article down
the
       channel.

With the following response:

       You need to translate wire formatted article when you
       use raw data, while sm does this.  Are you still need
       it?
       -- 
       Katsuhiro Kondou

Does this mean that an article is reformatted in some way for
transmission?  Is that what I'm seeing when I use Tp?  Am I limited to
using sm?  Performance is an issue for me - I'd like to avoid the
overhead of invoking extra programs if possible.

Any insights would be greatly appreciated.

Anne
-- 
***************************************************
Anne Wilson			UCAR Unidata Program		
anne@unidata.ucar.edu		       P.O. Box 3000
              			  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************
Technical Details
Message-ID: <3BB646A2.8D7DC023@unidata.ucar.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!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!nntp.wetware.com!attdv1!attdv2!ip.att.net!frgp!ucar!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3BB646A2.8D7DC023@unidata.ucar.edu>
Subject: Piping an article to a program via newsfeeds
Date: Sat, 29 Sep 2001 16:09:38 -0600
From: Anne Wilson <anne@unidata.ucar.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!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!nntp.wetware.com!attdv1!attdv2!ip.att.net!frgp!ucar!not-for-mail
Newsgroups: news.software.nntp
Organization: UCAR
Lines: 61
NNTP-Posting-Host: imogene.unidata.ucar.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.ucar.edu 1001801378 23496 128.117.140.28 (29 Sep 2001 22:09:38 GMT)
X-Complaints-To: news@news.ucar.edu
NNTP-Posting-Date: 29 Sep 2001 22:09:38 GMT
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2smp i686)
X-Accept-Language: en