🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71503

Re: posting

#71503
From: Bert Hyman
Date: Thu, 05 May 2005 00:33
88 lines
3291 bytes
In news:Mtdee.3788$Od6.531240@news.xtra.co.nz Shane
<shane@weasel.is-a-geek.net> wrote: 

> Hi all,
>      am having a crack at making a news client with perl (slow day)
> have telnetted my local server and got the list of legal commands
> 
> 100 Legal Commands
>   article [<messageid>|number]
>   authinfo type value
>   body [<messageid>|number]
>   date
>   group newsgroup
>   head [<messageid>|number]
>   help
>   last
>   list [active wildmat|active.times|counts wildmat]
>   list [overview.fmt|newsgroups wildmat]
>   listgroup newsgroup
>   mode reader
>   newgroups yyyymmdd hhmmss [GMT]
>   newnews newsgroups yyyymmdd hhmmss [GMT]
>   next
>   post
>   stat [<messageid>|number]
>   xhdr field [range]
>   xover [range]
>   xpat field range pattern
>   quit
> 
> however newnews gets me this (both via News::NNTPClient and telnet)
> newnews nz.test 20050504
> 502 NEWNEWS Permission Denied (command disabled)

Yes; the "newnews" command is considered by some to be too "expensive" 
to allow its use.
> 
> question 1) how do I get a list of the 'new' posts?

When you enter a group with the command

group group.name

the server responds

211 <# of articles> <low-article> <high-article> <group.name> 

Your client is supposed to keep track of what articles it's already
seen in each group so it knows which ones are "new".

Typically then, you'd issue 

xover low-high

where low is the first article number you want, and high is the last.

and the server would respond with overview records, one line per article
and you'd use that information to display a list of headers to your
user.

> also
> I had a crack at posting via telnet
> 
> post
> 340 Send Article to be Posted
> From: ShanesTelnet@shan.weasel.is-a-geek.net
> Newsgroups: nz.test
> Subject: telnet
> test test test
> 
> 
> .            
> 240 Article Posted
> quit
> 205 GoodBye
> 
> but checking with pan... the article wasnt posted at all (lying SOB's)
> which leads to 
> question 2)how the frig do I post?

A blank line is required between the last header and the first line of
text. 

See RFC-977, Network News Transfer Protocol and RFC-2980, Common NNTP
Extensions.

-- 
Bert Hyman	St. Paul, MN	bert@iphouse.com
Technical Details
Message-ID: <Xns964CC6F63E4D1VeebleFetzer@216.250.184.7>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!indigo.octanews.net!aqua.octanews.net!canary.octanews.net!green.octanews.net!news-out.octanews.net!news-2.mpls.iphouse.net.POSTED!not-for-mail
References: <Mtdee.3788$Od6.531240@news.xtra.co.nz>

Show Full Headers
Complete Article Headers
Message-ID: <Xns964CC6F63E4D1VeebleFetzer@216.250.184.7>
Subject: Re: posting
Date: Thu, 05 May 2005 00:33:17 +0000
From: Bert Hyman <bert@iphouse.com>
References: <Mtdee.3788$Od6.531240@news.xtra.co.nz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!indigo.octanews.net!aqua.octanews.net!canary.octanews.net!green.octanews.net!news-out.octanews.net!news-2.mpls.iphouse.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Not that you'd notice
User-Agent: Xnews/??.01.30
Lines: 88
NNTP-Posting-Date: 04 May 2005 19:33:17 CDT
NNTP-Posting-Host: ec9ffeb1.newsreader.iphouse.net
X-Trace: DXC=U5jE?>o4BdH\]7feji_9oFVn\Tj8`^BbKeHS>e[L>83@N:7SmE\fiNHc230oU7d71AX7@2h;
 nGb4Mi; 2?9E78; QG
X-Complaints-To: abuse@iphouse.net