Article View: news.software.nntp
Article #81119Have I to issue a GROUP command before POSTing?
From: Mateusz Viste
Date: Fri, 29 May 2009 21:28
Date: Fri, 29 May 2009 21:28
66 lines
3722 bytes
3722 bytes
Hi there! I'm totally new on this group, so sorry if I brake any rule, or if my question seems stupid to you :-) I recently wrote my own NNTP server, called BasicNews. It is destinated to serve some leaf sites (ie without any possible synchronisation with external servers): http://www.viste-family.net/mateusz/software/basicnews/ It still lacks some commands, and doesn't handle some cases properly, but it's on a very good way so far :) I tested it with PAN and KNode, and it works great, but recently, I tried it with PHPNews (a PHP WEB-NNTP gateway), and I noticed that I can't post. In fact, the gateway is sending a POST command without issuing a GROUP command before. So there comes my question: is it legal? I read RFC 977 and 3977 several times, but I could not find any clear information about that... The RFC doesn't tell that a "no group selected" answer is possible to a "POST" command, so it makes me think that the GROUP is not required... On the other hand, it seems weird to me, because: If my server holds two groups, one called X, which is read-only, and the second called Y, which is read-write, how could I possibly know what I have to answer to a client which tries to POST without specifying the group first? Of course, I could answer "Ok, give me your stuff", receive the message, check the Newsgroups header, and then answer with an error if he tried to post to the read-only group, but such behavior seems tricky to me... Do you know what is the *right* way to handle that? If it helps, here is the dump of the NNTP dialog: S: 200 Welcome to the BasicNews Server! C: MODE READER S: 200 Reader mode, posting permitted. C: POST S: 412 No newsgroup selected. C: From: Mateusz <mateusz@test.test> S: 500 I don't know such command. Sorry. C: Newsgroups: fr.lesgranges.test S: 500 I don't know such command. Sorry. C: Subject: Test WEB S: 500 I don't know such command. Sorry. C: Organization: XXX News Server S: 500 I don't know such command. Sorry. C: X-User-Real-E-Mail: %u@mail.domain S: 500 I don't know such command. Sorry. C: User-Agent: PHP News Reader v2.6.5 (CDSHEEN) S: 500 I don't know such command. Sorry. C: Mime-Version: 1.0 S: 500 I don't know such command. Sorry. C: Content-Type: text/plain; charset="utf-8" S: 500 I don't know such command. Sorry. C: Content-Transfer-Encoding: 8bit S: 500 I don't know such command. Sorry. C: X-HTTP-Posting-Host: 192.168.190.20 S: 500 I don't know such command. Sorry. C: C: Test message from PHP-NEWS. Best regards, Mateusz Viste
Technical Details
Message-ID:
<3l06f6-ji1.ln1@mail.viste-family.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp18-2.free.fr!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3l06f6-ji1.ln1@mail.viste-family.net> Subject: Have I to issue a GROUP command before POSTing? Date: Fri, 29 May 2009 23:28:35 +0200 From: Mateusz Viste <mateuszATviste-familyDOTnet@localhost.localhost> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp18-2.free.fr!not-for-mail Newsgroups: news.software.nntp User-Agent: KNode/0.10.9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Lines: 66 Organization: Guest of ProXad - France NNTP-Posting-Date: 29 May 2009 23:30:04 MEST NNTP-Posting-Host: 82.225.72.113 X-Trace: 1243632604 news-1.free.fr 31249 82.225.72.113:41541 X-Complaints-To: abuse@proxad.net