Thread View: news.software.nn
5 messages
5 total messages
Started by Phil Fraering
Mon, 18 Nov 1996 00:00
nn and leafnode...
Author: Phil Fraering
Date: Mon, 18 Nov 1996 00:00
Date: Mon, 18 Nov 1996 00:00
18 lines
1092 bytes
1092 bytes
Hi. I'm trying to use leafnode and nn together, but I keep
getting 502 syntax errors (usually _after_ connecting
and receiving permission to post, etc.).
I'm using the latest version of each for linux.
Does anyone know what's going on?
Phil Fraering The above is the opinion of neither my internet
pgf@acadian.net service provider nor my employer.
318/261-9649 "Some days, it just isn't worthwhile
chewing through the leather straps."
Re: nn and leafnode...
Author: Kristian Köhntopp
Date: Tue, 19 Nov 1996 00:00
Date: Tue, 19 Nov 1996 00:00
19 lines
1321 bytes
1321 bytes
Joe Kelsey <joek@dgtl.com> writes: >By the way, why does nn disallow nntp connections to localhost? There >is an extremely annoying bit of code in nntp.c that compares the nntp >server address to the local host address and disallows nntp connections >if the two match. This has annoyed me, too, and I have hardcoded disabled it for my system. The correct way would be to make this a variable for the init file. Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 "Antworten bitte in die Newsgroup, da ich meine Mail nicht lese." -- Stefan Stapelberg <stefan@rent-a-guru.de>
Re: nn and leafnode...
Author: Joe Kelsey
Date: Tue, 19 Nov 1996 00:00
Date: Tue, 19 Nov 1996 00:00
31 lines
1964 bytes
1964 bytes
Phil Fraering wrote: > > Hi. I'm trying to use leafnode and nn together, but I keep > getting 502 syntax errors (usually _after_ connecting > and receiving permission to post, etc.). > > I'm using the latest version of each for linux. > > Does anyone know what's going on? Leafnode is returning a 502 error where it should be returning a 503 error. Nn is trying to read the group time list (or some such---I forget exactly what) and it is set up to handle 503 errors and blithely continue on. Leafnode returns a 503 error correctly under some circumstances, but not others. The 503 indicates that the nntp server does not support the requested file. I have the diffs for leafnode at home and I can post them tonight. By the way, why does nn disallow nntp connections to localhost? There is an extremely annoying bit of code in nntp.c that compares the nntp server address to the local host address and disallows nntp connections if the two match. This makes no sense to me, as I want to run leafnode at home to automatically collect a small number of newsgroups from my ISP at night so that I don't have to put up with modem access times when reading news at my leisure. /Joe
Re: nn and leafnode...
Author: Kristian Köhntopp
Date: Wed, 20 Nov 1996 00:00
Date: Wed, 20 Nov 1996 00:00
67 lines
2950 bytes
2950 bytes
mtpins@icaen.uiowa.edu (Michael T Pins) writes:
>I suspect this was done as it's rather more efficient to hit the files
>directly rather than getting them via nntp.
True. But there is a problem with this approach, if you run
your INN with
## Umask to set.
#### =()<NEWSUMASK @<NEWSUMASK>@>()=
NEWSUMASK 0077
## Mode that incoming articles are created under.
#### =()<ARTFILE_MODE @<ARTFILE_MODE>@>()=
ARTFILE_MODE 0600
## Mode that directories are created under.
#### =()<GROUPDIR_MODE @<GROUPDIR_MODE>@>()=
GROUPDIR_MODE 0700
You have to use this file modes to force usage of NNRP. Under
NNRP you can use nnrp.access to create individual read and post
permissions per host or per user (nn does not support NNRP
user authentication with authinfo user|pass, though).
>As I've heard a number of
>gripes about this, I'll add a compile time option of somesort for those
>that need it.
Please make this a run-time option and think about
authinfo-Support, too. I have no time to prepare a patch, but a
run-time option for use_nntp should be easy. Just export a
preinitialized boolean variable "force_nntp" from nntp.c and
change nntp.c:nntp_check() from
use_nntp = (strcmp(host, server_real_name) != 0);
to something like
use_nntp = (strcmp(host, server_real_name) != 0);
/* force nntp usage even for local servers */
if (force_nntp)
use_nntp = 1;
Import force_nntp into variable.c at the appropriate place and
insert
"force_nntp", BOOL 0, (char **)&force_nntp,
into the variable_defs array. That should do it.
Ah, and while you are at it, please make the pathname of the
aux script a STR SAVE 4 configurable variable
"aux_script_path", too. I thought this had been done before, but
it isn't there.
Authinfo-Support would be great, too, but is a slightly bigger
change if you want to do it right (for multiple servers with
remembered passwords).
Kristian
--
Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897
"Antworten bitte in die Newsgroup, da ich meine Mail nicht lese."
-- Stefan Stapelberg <stefan@rent-a-guru.de>
Re: nn and leafnode...
Author: Michael T Pins
Date: Wed, 20 Nov 1996 00:00
Date: Wed, 20 Nov 1996 00:00
23 lines
1681 bytes
1681 bytes
Joe Kelsey <joek@dgtl.com> writes: >By the way, why does nn disallow nntp connections to localhost? There >is an extremely annoying bit of code in nntp.c that compares the nntp >server address to the local host address and disallows nntp connections >if the two match. This makes no sense to me, as I want to run leafnode >at home to automatically collect a small number of newsgroups from my >ISP at night so that I don't have to put up with modem access times when >reading news at my leisure. I suspect this was done as it's rather more efficient to hit the files directly rather than getting them via nntp. As I've heard a number of gripes about this, I'll add a compile time option of somesort for those that need it. -- ************************************************************************** * Michael T Pins | mtpins@isca.uiowa.edu * * keeper of the nn sources | mtpins@winternet.com * * ftp.isca.uiowa.edu | #include <std.disclaimer> *
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