Thread View: news.software.nn
11 messages
11 total messages
Started by Minh Tran-Le
Tue, 21 Jan 1997 00:00
nn and msnews.microsoft.com
Author: Minh Tran-Le
Date: Tue, 21 Jan 1997 00:00
Date: Tue, 21 Jan 1997 00:00
16 lines
950 bytes
950 bytes
Hi, I am trying use nn to read newsgroups off the microsoft news server (msnews.microsoft.com) and I am getting this error at startup: $ NNTPSERVER=msnews.microsoft.com nn Connecting to NNTP server msnews.microsoft.com ... Connecting to NNTP server msnews.microsoft.com ... ok (posting is allowed) NNTP 501 Syntax Error in Command response: 501 Does anybody knows what it mean ? Thanks, Minh Tran-Le.
Re: nn and msnews.microsoft.com
Author: Kristian Köhntopp
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
92 lines
3673 bytes
3673 bytes
mtranle@theoden.intellicorp.com (Minh Tran-Le) writes:
>$ NNTPSERVER=msnews.microsoft.com nn
>Connecting to NNTP server msnews.microsoft.com ...
>Connecting to NNTP server msnews.microsoft.com ... ok (posting is allowed)
>NNTP 501 Syntax Error in Command response: 501
>Does anybody knows what it mean ?
Here is the relevant part of the debugging log (created on a
Linux 2.0.25 system):
root@white:~# NNTPSERVER=msnews.microsoft.com strace nn
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sin_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("207.68.144.15")}, 16) = 0
dup(3) = 4
read(3, "200 NNTP Service Microsoft\256 I"..., 1024) = 94
write(4, "MODE READER\r\n", 13) = 13
read(3, "200 NNTP Service Microsoft\256 I"..., 1024) = 94
write(1, "Connecting to NNTP server msnews"..., 75) = 75
write(4, "LIST\r\n", 6) = 6
read(3, "215 list of newsgroups follow\r\n"..., 1024) = 1024
read(3, "\r\nmicrosoft.public.access.repo"..., 1024) = 436
read(3, "microsoft.public.word.programmin"..., 1024) = 367
brk(0x80b3000) = 0x80b3000
write(4, "LIST active.times\r\n", 19) = 19
read(3, "501 Syntax Error in Command\r\n", 1024) = 29
close(4) = 0
close(3) = 0
write(1, "NNTP 501 Syntax Error in Command"..., 47) = 47
_exit(1) = ?
nn fails, because the remote server does not understand the
command "LIST active.times". This command lists all newsgroups
on the server with their newsgroup creation dates. nn uses this
information to check for new groups since the last contact to
the server.
This is how nn talks to an INN server, which supports "LIST
active.times":
write(4, "LIST active.times\r\n", 19) = 19
read(3, "215 Group creations in form \"na"..., 1024) = 1024
read(3, "white\r\nkiel.computer.unix 8053"..., 1024) = 1024
read(3, "z.sprachen.delphi 852752854 news"..., 1024) = 195
and so on.
msnews is running
200 NNTP Service Microsoft(C) Internet Services 5.00.7478 Version: 5.0.0.7478 Posting Allowed
help
100 Legal commands are :
article [MessageID|Number]
authinfo [user|pass|generic|transact] <data>
body [MessageID|Number]
date
group newsgroup
head [MessageID|Number]
help
ihave <message-id>
last
list [active|newsgroups[wildmat]]
mode reader
newgroups yymmdd hhmmss ["GMT"] [<distributions>]
newnews wildmat yymmdd hhmmss ["GMT"] [<distributions>]
next
post
slave
stat [MessageID|number]
xhdr header [range|MessageID]
xover [range]
xreplic newsgroup/message-number[,newsgroup/message-number...]
..
quit
205 closing connection - goodbye!
Kristian
--
Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897
"I should probably apologize for all the side-effects in the if." -- Rich $alz,
while coding >> if ((j = strlen(p) - 4) > 0 && *(p += j) == '.'
&& p[1] == 'c' && p[2] == 't' && p[3] == 'l')' << (INN1.4unoff4, art.c)
Re: nn and msnews.microsoft.com
Author: Kristian Köhntopp
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
26 lines
1762 bytes
1762 bytes
KRIS@KOEHNTOPP.DE (Kristian K�hntopp) writes: >newgroups yymmdd hhmmss ["GMT"] [<distributions>] The "LIST active.times" command, which is supported by INN and MSIN, is the correct command to use. "LIST active.times" is not an official NNTP command and is not mentioned in the INN online help (when you type "help" into an NNRP connection). nn uses "LIST active.times", because the local spool version of nn accesses $NEWSLIB/active.times to find new newsgroups created since the last use. The NNTP support for this feature is a hack (see db.c:readtimfile()) and works with INN only. Instead the command "newgroups" with a syntax as shown quoted should be used. "newgroups" output is not in "active.times" format, though, so code is needed to handle this transparently. Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 "I should probably apologize for all the side-effects in the if." -- Rich $alz, while coding >> if ((j = strlen(p) - 4) > 0 && *(p += j) == '.' && p[1] == 'c' && p[2] == 't' && p[3] == 'l')' << (INN1.4unoff4, art.c)
Re: nn and msnews.microsoft.com
Author: Trip Martin
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
20 lines
1309 bytes
1309 bytes
mtranle@theoden.intellicorp.com (Minh Tran-Le) writes: >Hi, >I am trying use nn to read newsgroups off the microsoft news server >(msnews.microsoft.com) and I am getting this error at startup: >$ NNTPSERVER=msnews.microsoft.com nn >Connecting to NNTP server msnews.microsoft.com ... >Connecting to NNTP server msnews.microsoft.com ... ok (posting is allowed) >NNTP 501 Syntax Error in Command response: 501 Probably that their software is broken as usual. Or that it's just misconfigured. There's nothing you can do about it except bug them about it. -- Trip Martin | Power tends to corrupt; absolute power corrupts absolutely tm@squonk.net | - Lord Acton (A scary but very accurate view of modern times)
Re: nn and msnews.microsoft.com
Author: Minh Tran-Le
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
19 lines
1336 bytes
1336 bytes
In <E4GD6q.CA4@scrum.muc.de> mibu@scrum.muc.de (M. Buchenrieder) writes: >Yup. It's possible that MS decided to implement a different command >syntax that a standard NNTP client will not be able to correctly >understand. Actually, if you have followed the other thread posted by KRIS@KOEHNTOPP.DE (Kristian Koehntopp) the problem lies partly because nn is using the "LIST active.times" command with although implemented in 'inn' is not implemented on the Microsoft news server. The code for nn says it should not matter if "LIST active.times" return nothing. But even with disabling that code it still does not work right. Minh Tran-Le (tranle@intellicorp.com)
Re: nn and msnews.microsoft.com
Author: Kristian Köhntopp
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
27 lines
1656 bytes
1656 bytes
mibu@scrum.muc.de (M. Buchenrieder) writes: >tm@squonk.net (Trip Martin) writes: >>Probably that their software is broken as usual. Or that it's just >>misconfigured. There's nothing you can do about it except bug them >>about it. >Yup. It's possible that MS decided to implement a different command >syntax that a standard NNTP client will not be able to correctly >understand. As I posted in two other articles in this thread, the fault is on the side of nn. nn uses "LIST active.times" to get a list of newsgroups with their respective creation dates. The correct command to get a list of groups created since a specific date is to use the "newgroups" command, which is supported by the Microsoft Internet News Server. Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 $ vgrep EMACS /usr/include/errno.h #define EMACS 511 /* Editor to big */ -- rs@purple.UL.BaWue.DE (Ralph Schleicher)
Re: nn and msnews.microsoft.com
Author: M. Buchenrieder
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
30 lines
1595 bytes
1595 bytes
tm@squonk.net (Trip Martin) writes:
>mtranle@theoden.intellicorp.com (Minh Tran-Le) writes:
>>Hi,
>>I am trying use nn to read newsgroups off the microsoft news server
>>(msnews.microsoft.com) and I am getting this error at startup:
>>$ NNTPSERVER=msnews.microsoft.com nn
>>Connecting to NNTP server msnews.microsoft.com ...
>>Connecting to NNTP server msnews.microsoft.com ... ok (posting is allowed)
>>NNTP 501 Syntax Error in Command response: 501
>Probably that their software is broken as usual. Or that it's just
>misconfigured. There's nothing you can do about it except bug them
>about it.
Yup. It's possible that MS decided to implement a different command
syntax that a standard NNTP client will not be able to correctly
understand.
Michael
--
Michael Buchenrieder * mibu@scrum.muc.de / mibu@scrum.greenie.muc.de
*****************************************************************************
Menu, n.:
A list of dishes which a restaurant has just run out of.
Re: nn and msnews.microsoft.com (fix included)
Author: Minh Tran-Le
Date: Fri, 24 Jan 1997 00:00
Date: Fri, 24 Jan 1997 00:00
81 lines
3606 bytes
3606 bytes
In <5c4icu$9re@white.koehntopp.de> KRIS@KOEHNTOPP.DE (Kristian =?ISO-8859-1?Q?K=F6hntopp?=) writes:
>KRIS@KOEHNTOPP.DE (Kristian Koehntopp) writes:
>>newgroups yymmdd hhmmss ["GMT"] [<distributions>]
>The "LIST active.times" command, which is supported by INN and
>MSIN, is the correct command to use. "LIST active.times" is not
>an official NNTP command and is not mentioned in the INN online
>help (when you type "help" into an NNRP connection).
>nn uses "LIST active.times", because the local spool version of
>nn accesses $NEWSLIB/active.times to find new newsgroups
>created since the last use. The NNTP support for this feature
>is a hack (see db.c:readtimfile()) and works with INN only.
>Instead the command "newgroups" with a syntax as shown quoted
>should be used. "newgroups" output is not in "active.times"
>format, though, so code is needed to handle this transparently.
Well,
thanks for "Kristian Koehntopp" for pointing me in the right direction.
There was on thing wrong with nn code and one thing different about
the microsoft news server:
- When you do "LIST noexisting_file" you get a "501 syntax error" instead
of a "503 program fault" as nn was expecting.
- The output of the "LIST" command with the microsoft news server gives
back a line with article number that are not padded with 0 like the inn
server would do. And trigger a bug in nn which skipped over the first
digit.
inn => news.group.name 0000000368 0000000250 y
microsoft => news.group.name 368 250 y
and nn would get the 'last article number' 68 and 'first article' 250
instead of 368 and 250.
So here is the 2 small patch to nn-6.5.1 source code for people that wants
to use nn on the microsoft news server. But as the microsoft news server
does not support "LIST active.times" newgroups will not be added
automatically to your ~/.newsrc files.
Minh Tran-Le (tranle@intellicorp.com)
---------------------------------------------------------------------------
*** db.c.~1~ Wed Jan 22 15:07:17 1997
--- db.c Fri Jan 24 15:24:34 1997
***************
*** 1455,1459 ****
p = actlist[num];
if (p != NULL) {
! gh->last_a_article = atol(++p);
p = strchr(p, ' ');
if (p == NULL)
--- 1455,1460 ----
p = actlist[num];
if (p != NULL) {
! while (isspace(*p)) ++p;
! gh->last_a_article = atol(p);
p = strchr(p, ' ');
if (p == NULL)
*** nntp.c.~1~ Sun Aug 25 21:09:08 1996
--- nntp.c Wed Jan 22 13:52:14 1997
***************
*** 550,554 ****
*/
if (response == ERR_GOODBYE || response > ERR_COMMAND) {
! if (fix_err && response == ERR_FAULT) return ERR_NOGROUP;
nntp_failed = 1;
--- 550,554 ----
*/
if (response == ERR_GOODBYE || response > ERR_COMMAND) {
! if (fix_err && (response == ERR_FAULT || response == ERR_CMDSYN)) return ERR_NOGROUP;
nntp_failed = 1;
Re: nn and msnews.microsoft.com
Author: Larry Daffner
Date: Sun, 26 Jan 1997 00:00
Date: Sun, 26 Jan 1997 00:00
46 lines
2590 bytes
2590 bytes
Nick.Holloway@alfie.demon.co.uk (Nick Holloway) writes:
> KRIS@KOEHNTOPP.DE (Kristian =?ISO-8859-1?Q?K=F6hntopp?=) writes:
> > As I posted in two other articles in this thread, the fault is
> > on the side of nn. nn uses "LIST active.times" to get a list
> > of newsgroups with their respective creation dates.
>
> After the setup of a nntp proxy, the startup time for nn has rocketed.
> This thread has cast some light on the problem.
>
> Performing "LIST active", "LIST active.times" then "LIST newsgroups"
> (because I had "show-purpose" set) takes quite a while against a newserver
> with a full active file.
>
> I can turn off "show-purpose", to reduce the time by ~1/3. I would like
> to see "NEWGROUPS" used to help reduce the time by another ~1/3.
Agreed. NN was written when INN was still relatively new, and most
people did not read news over a low bandwidth line (like a modem). As
such, the startup takes big hits by retrieving a lot of data it
doesn't need. The startup procedure should go something like:
1) Sign on, mode reader
2) use NEWGROUPS to ask for new groups
3) Check if remote supports LIST active group
a) If so, send list active group for each group in .newsrc and read
data
b) else, use GROUP group commands for each newsgroup and read data
The initialization time can go from about 15 minutes to about 2
minutes for a server with 20,000 groups over a 28.8 modem. The problem
comes when you try to jump to unsubscribe groups. nn's internal
storage format needs a bit of reworking to make this possible. If db.c
was reworked to allow the array to be updated dynamically, then you
could use xgtitle to be able to match incomplete group names.
-Larry
y
--
Larry Daffner | Linux: Unleash the workstation in your PC!
vizzie@airmail.net / http://web2.airmail.net/vizzie/
Playing an unamplified electric guitar is like strumming on a picnic
table. -- Dave Barry, "The Snake"
Re: nn and msnews.microsoft.com
Author: Nick Holloway
Date: Sun, 26 Jan 1997 00:00
Date: Sun, 26 Jan 1997 00:00
21 lines
1571 bytes
1571 bytes
KRIS@KOEHNTOPP.DE (Kristian =?ISO-8859-1?Q?K=F6hntopp?=) writes: > As I posted in two other articles in this thread, the fault is > on the side of nn. nn uses "LIST active.times" to get a list > of newsgroups with their respective creation dates. After the setup of a nntp proxy, the startup time for nn has rocketed. This thread has cast some light on the problem. Performing "LIST active", "LIST active.times" then "LIST newsgroups" (because I had "show-purpose" set) takes quite a while against a newserver with a full active file. I can turn off "show-purpose", to reduce the time by ~1/3. I would like to see "NEWGROUPS" used to help reduce the time by another ~1/3. -- `O O' | Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/ // ^ \\ | Nick.Holloway@parallax.co.uk http://www.parallax.co.uk/~alfie/
Re: nn and msnews.microsoft.com
Author: Kristian Köhntopp
Date: Mon, 27 Jan 1997 00:00
Date: Mon, 27 Jan 1997 00:00
21 lines
1501 bytes
1501 bytes
Larry Daffner <vizzie@airmail.net> writes: >1) Sign on, mode reader 1b) optionally log in with authinfo user username and authinfo pass password >2) use NEWGROUPS to ask for new groups >3) Check if remote supports LIST active group > a) If so, send list active group for each group in .newsrc and read > data > b) else, use GROUP group commands for each newsgroup and read data Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 "Wenn ich mir das Theater so ansehe, wird mir mit einem Schlag klar, warum in ZConnect-basierenden Netzen Satireforen so wenig Erfolg haben." -- Rolf Witt, cl.koordination.diskurs, "Re: Treffen der Entschlossenen"
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