🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Shane Thu, 05 May 2005 00:08
posting
#71500
Author: Shane
Date: Thu, 05 May 2005 00:08
62 lines
2436 bytes
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)

question 1) how do I get a list of the 'new' posts?
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?

TIA




-- 
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.
Re: posting
#71499
Author: Shane
Date: Thu, 05 May 2005 00:21
28 lines
1771 bytes
> 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?
> 
> TIA

er my post showed up on aus.test ( when I added that to the newsgroups,
but still not nz.test :-\

-- 
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.
Re: posting
#71501
Author: Frederick Bruckman
Date: Thu, 05 May 2005 00:25
43 lines
2468 bytes
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".

> 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.

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

-- 
Frederick
Re: posting
#71503
Author: 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
Re: posting
#71502
Author: 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/
Re: posting
#71504
Author: Shane
Date: Thu, 05 May 2005 01:44
50 lines
2951 bytes
>> > 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.

success!
indeed the blank line was one issue
(also the fact I had entered a the nz.test group first was also preventing
posts to nz.test for reasons I have yet to work out)
Thanking all for help on this issue... now to work out how to get the last
x number of posts, and then to work out how to tell the age of posts ..
etc

-- 
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.
Re: posting
#71506
Author: Sébastien WILLEMIJNS
Date: Thu, 05 May 2005 07:12
23 lines
1529 bytes
On Thu, 05 May 2005 12:08:10 +1200, Shane <shane@weasel.is-a-geek.net>
wrote:

>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

Hum.... i think you must have a space after subject field no ?


-- 
Sébastien WILLEMIJNS, France
www.willemijns.com
www.nntpeng.willemijns.com (FAQ about open NNTP servers)
Re: posting
#71507
Author: Szymon Sokół
Date: Thu, 05 May 2005 08:27
15 lines
2277 bytes
Shane <shane@weasel.is-a-geek.net> wrote:

> (also the fact I had entered a the nz.test group first was also preventing
> posts to nz.test for reasons I have yet to work out)
One possibility would be that the group is moderated, but I somehow doubt
it is the case with anything.test. Another one is that the server restricts
posting to nz.test (based on client's IP, maybe?), and third is that the
article has been posted and almost immediately cancelled (by a cancelbot?) -
probably that does not exhaust the list of possible reasons.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: posting
#71522
Author: Shane
Date: Thu, 05 May 2005 19:48
14 lines
1655 bytes
Thanks all who have replied,
I have thus far been able to post to any group, and read articles, and
select which articles I want to read.
The only problem I have left is threading....
I cant see how to reply to a post within a thread, nor can I see how to
arrange a series of posts as a thread 
Im guessing theres something in the message ids?
TIA

-- 
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.
Re: posting
#71523
Author: Bert Hyman
Date: Thu, 05 May 2005 19:52
13 lines
1477 bytes
shane@weasel.is-a-geek.net (Shane) wrote in
news:TLuee.4049$Od6.557802@news.xtra.co.nz: 

> I cant see how to reply to a post within a thread, nor can I see
> how to arrange a series of posts as a thread 
> Im guessing theres something in the message ids?

You want to look at how the "References:" header works.

See RFC-1036.

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: posting
#71524
Author: Shane
Date: Thu, 05 May 2005 19:54
22 lines
1882 bytes
On Thu, 05 May 2005 19:52:28 +0000, Bert Hyman wrote:

> shane@weasel.is-a-geek.net (Shane) wrote in
> news:TLuee.4049$Od6.557802@news.xtra.co.nz: 
> 
>> I cant see how to reply to a post within a thread, nor can I see
>> how to arrange a series of posts as a thread 
>> Im guessing theres something in the message ids?
> 
> You want to look at how the "References:" header works.
> 
> See RFC-1036.

heh.. why do I get the feeling you have done this exact task many many
times before 
(Thanking You)

-- 
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.
Re: posting
#71525
Author: Curt Welch
Date: Thu, 05 May 2005 20:04
38 lines
2852 bytes
Shane <shane@weasel.is-a-geek.net> wrote:
> Thanks all who have replied,
> I have thus far been able to post to any group, and read articles, and
> select which articles I want to read.
> The only problem I have left is threading....
> I cant see how to reply to a post within a thread, nor can I see how to
> arrange a series of posts as a thread
> Im guessing theres something in the message ids?
> TIA

As was pointed out, it's the References: header and the subject which
newsreaders must use to construct threads.

The general idea is that you copy the References: header from the article
you followup to, and then add the Messsage-ID of that article to the end of
the list.

So, the reference header should be a list of the Message-IDs of all the
articles in the follow-up tree back to the root article of the thread.

However, the header grows too large for long threads and you must trunate
it to keep it from getting to long.  The correct way to do that is to
remove the second Message-ID from the list.  That way, you leave the
Message-ID for the article which is the toot of the entire thread tree (the
first ID), and as much of the recent IDs as will fit.

The other thing you need to do on a reply is modify the subject by adding
Re: (if it's not already there), and deal with Followup-To:.

Building a thread tree is not easy because you must use the References:
header but you can't trust that all the articles will have valid
References: headers.  Better newsreaders will have fairly advanced and
complex algorthms for building resonable thread trees even when articles do
not all have resonable headers in them.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: posting
#71526
Author: Russ Allbery
Date: Thu, 05 May 2005 20:07
19 lines
1862 bytes
Curt Welch <curt@kcwc.com> writes:

> Building a thread tree is not easy because you must use the References:
> header but you can't trust that all the articles will have valid
> References: headers.  Better newsreaders will have fairly advanced and
> complex algorthms for building resonable thread trees even when articles
> do not all have resonable headers in them.

One of the best public documents on how to do this is:

    <http://www.jwz.org/doc/threading.html>

by Jamie Zawinski.

-- 
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads