🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64055

Suggestings for NNTP command with attachment app

#64055
From: Tom
Date: Sun, 16 Feb 2003 17:17
43 lines
2779 bytes
I am looking for suggestions on the best way to implement a binary news
grabber (and Usenet reader).  I read through RFC 977 which gave me a lot of
questions as how to best implement my commands.

The idea is I need to read all the articles (at least the headers) of a
group to determine if there is a binary file attached.  I understand how to
do that, but I am looking for the most efficient way (so the server isn't
bogged down).

From reading RFC 977, here is what I have come up with:

To read a messsage:
------------------
GROUP <groupname>
ARTICLE <articleid>

To locate all the posts with binary attachments:
------------------------------------------------
GROUP <groupname>
STAT <articleid>
HEAD

I would then process the results of the HEAD command looking for mime types,
etc.

Would I just do this in some big loop?  It seems rather inefficient. I know
NNTP is old, so that might just be the way things are done, I just wanted to
see what others are doing first.

Also, on some binary "grabbers", there are options like "read nn number of
lines to determine if post is binary", where nn is a number that can be
entered (usually defaulting to 50).

 I am assuming that this is the first nn lines of the body.  Would that mean
the grabber is getting the entire post in a group (unless there is a way to
get the first nn lines of an article)?  Getting every post would effectively
mean it is downloading all the binaries in the group, which is not the case.

Thanks,



Technical Details
Message-ID: <G_acnQL_QMldWtKjXTWcoQ@giganews.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!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <G_acnQL_QMldWtKjXTWcoQ@giganews.com>
Subject: Suggestings for NNTP command with attachment app
Date: Sun, 16 Feb 2003 12:17:44 -0500
From: "Tom" <webview@rcn.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!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 16 Feb 2003 11:17:52 -0600
Newsgroups: news.software.nntp
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Lines: 42
X-Trace: sv3-2yA/ci65pmep7e4gfdAzyIb4x40+AfSKRAfiXJasfon1lxgMICiRjLT+mOfuWVhcV0d3xoOMoOFvCtd!GfLqGpFF55fYL++vPllkO3VVGqcxOSqdF7YWwSs2eVWqqIYDzaFfxcmeSYDf
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1