Article View: news.software.nn
Article #8031Re: can't nn pssnews.msn.com
From: Henrik Storner
Date: Tue, 01 Oct 1996 00:00
Date: Tue, 01 Oct 1996 00:00
50 lines
2281 bytes
2281 bytes
In <pelle.844111984@snakemail.hut.fi> pelle@banjo.hut.fi (timo.pelkonen) writes:
>nn to M$ newsserver gives an error:
>Connecting to NNTP server pssnews.msn.com ...
>Connecting to NNTP server pssnews.msn.com ... ok (posting is allowed)
>NNTP 501 Syntax Error in Command response: 501
>version is: Release 6.5 beta.0 #3 (NOV)
Ahh - I had the same problem a while back, also with the MS news-server.
As I recall (I am not at work right now, so I cannot check it), the
nntp.c in nn assumes that the response to one of the list commands
may return an error - but checks for only one of the possible nntp error
codes.
Looking through the 6.5.1 sources, the ask_server routine in nntp.c
looks suspicious:
<snip>
response = get_server(buf, sizeof(buf));
/*
* Handle the response from the server. Responses are handled as
* followes:
*
* 100-199 Informational. Passed back. (should they be ignored?).
* 200-299 Ok messages. Passed back.
* 300-399 Ok and proceed. Can not happen in nn.
* 400-499 Errors (no article, etc). Passed up and handled there.
* 500-599 Fatal NNTP errors. Handled below.
*/
if (response == ERR_GOODBYE || response > ERR_COMMAND) {
if (fix_err && response == ERR_FAULT) return ERR_NOGROUP;
<end snip>
ERR_COMMAND is 500, ERR_FAULT is 503. The MS server returns code 501;
I would say that the last line should be
if (fix_err && response > ERR_COMMAND) return ERR_NOGROUP;
--
Henrik Storner | "Life is like a 10 speed bicycle.
storner@osiris.ping.dk | Most of us have gears we never use."
http://eolicom.olicom.dk/~storner/ | C. Schultz
Technical Details
Message-ID:
<52rt4t$ie@osiris.ping.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<pelle.844111984@snakemail.hut.fi>Show Full Headers
Complete Article Headers
Message-ID: <52rt4t$ie@osiris.ping.dk> Subject: Re: can't nn pssnews.msn.com Date: Tue, 01 Oct 1996 00:00:00 +0000 From: storner@osiris.ping.dk (Henrik Storner) References: <pelle.844111984@snakemail.hut.fi> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 186551341 Organization: Linux users, Inc. Newsgroups: news.software.nn