🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71502

Re: posting

#71502
From: Curt Welch
Date: Thu, 05 May 2005 00:37
72 lines
3793 bytes
fredb@immanent.net (Frederick Bruckman) wrote:
> In article <Mtdee.3788$Od6.531240@news.xtra.co.nz>,
>         Shane <shane@weasel.is-a-geek.net> writes:
> > 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
>
> > however newnews gets me this (both via News::NNTPClient and telnet)
> > newnews nz.test 20050504
> > 502 NEWNEWS Permission Denied (command disabled)
>
> > question 1) how do I get a list of the 'new' posts?
> > also
>
> I think the most usual way is to do a "GROUP", then factor out the
> articles already seen, as determined by the article numbers stored
> in "~/.newsrc".

Yes, news clients track the article numbers from the GROUP command.
Articles show up in sequential order, so you simply store the high water
mark, and check it each time you visit the group.

There's now way to get a list of all new articles in all groups without
newnews.  You have to do it group by group.  Many servers disable newnews
because it tends to be a very expensive command.

If you want to simply find all new articles and download them, you should
get a newsfeed and have the articles sent to you instead of using client
commands to download them (which is known as a suck feed).

Suck feeds are useful for a few groups, but if you need lots of groups,
it's better to just get a newsfeed.

> > 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?
>
> 1) There's supposed to be a blank line between the header and the body.

Right, the post above is an invalid article and would be rejected.  Beacuse
there is no blank line, the "test test test" line would be seen as a header
but then the article would be rejected because it's an invalid header
("test: test test" would have worked).

Otherwise, what you did looks correct and if you put in the blank line
between the header and the body, it should work.

> 2) Not many servers permit anonymous posting. You probably need to first
> do "AUTHINFO USER userid" "AUTHINFO PASS password".

If that was true, the server would not have returned the "340 Send Article"
response.  He must have already done the AUTHINFO or was using a server he
didn't need to authenticate with.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20050504203705.391$k8@newsreader.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
References: <Mtdee.3788$Od6.531240@news.xtra.co.nz> <0sCdnXmAH5Sc9eTfRVn-2A@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <20050504203705.391$k8@newsreader.com>
Subject: Re: posting
Date: Thu, 05 May 2005 00:37:05 +0000
From: curt@kcwc.com (Curt Welch)
References: <Mtdee.3788$Od6.531240@news.xtra.co.nz> <0sCdnXmAH5Sc9eTfRVn-2A@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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com mao6J6Q3c.DjugbP.K./jh_Vs8M5xo2C8jzMsxEs.9Otqfe
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 72