🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Martin Ward Thu, 27 Jun 2013 09:40
Given up on Diablo, now having troubles with INN instead!
#85735
Author: Martin Ward
Date: Thu, 27 Jun 2013 09:40
11 lines
1907 bytes
Hi all,

Diablo was not making my life easy so, based on comments from others plus the amount of support material available on the Internet, I decided to go the INN route.

I have the server set up and running OK but I am having trouble understanding the entries in the newsfeeds file.

The major confusion is around the second field. Some examples talk about using / in there, others don't mention it at all. There is also the ME entry that seems to be a default entry.

I would really appreciate a simple explanation of the ME entry and of the second field as it seems to be the thing stopping me from receiving and sending articles remotely.

|\/|
Re: Given up on Diablo, now having troubles with INN instead!
#85736
Author: Martin Ward
Date: Thu, 27 Jun 2013 09:47
22 lines
2180 bytes
Martin Ward <wardmw@gmail.com> wrote:
> Hi all,
> Diablo was not making my life easy so, based on comments from others plus
> the amount of support material available on the Internet, I decided to go
> the INN route.
> I have the server set up and running OK but I am having trouble
> understanding the entries in the newsfeeds file.
> The major confusion is around the second field. Some examples talk about
> using / in there, others don't mention it at all. There is also the ME
> entry that seems to be a default entry.
> I would really appreciate a simple explanation of the ME entry and of the
> second field as it seems to be the thing stopping me from receiving and
> sending articles remotely.

Hmm... clearly the last change I made to the newsfeeds file has made a
difference since I posted the original article in Google Groups and am
able to respond using my new INN server!

I would still appreciate a description of the newsfeeds fields as I don't
understand them, but it looks like I might have a working system now!

 |\/|
Re: Given up on Diablo, now having troubles with INN instead!
#85741
Author: Russ Allbery
Date: Thu, 27 Jun 2013 16:45
55 lines
3872 bytes
Martin Ward <wardmw@gmail.com> writes:

> Diablo was not making my life easy so, based on comments from others
> plus the amount of support material available on the Internet, I decided
> to go the INN route.

> I have the server set up and running OK but I am having trouble
> understanding the entries in the newsfeeds file.

> The major confusion is around the second field. Some examples talk about
> using / in there, others don't mention it at all. There is also the ME
> entry that seems to be a default entry.

> I would really appreciate a simple explanation of the ME entry and of
> the second field as it seems to be the thing stopping me from receiving
> and sending articles remotely.

You've read newsfeeds(5)?  It goes into quite a lot of depth on this; if
it still doesn't make sense, could you ask more specific questions?  I'm
not sure what part to clarify.

    http://www.eyrie.org/~eagle/software/inn/docs-2.5/newsfeeds.html

It's best to think of the ME field as a special, separate field rather
than a default.  The above describes it as follows:

    The site named "ME" is special. There must be exactly one such entry,
    and it should be the first entry in the file. If the "ME" entry has an
    exclusion sub-field, incoming articles are rejected completely if any of
    the names specified in that exclusion sub-field appear in their Path:
    headers. If the "ME" entry has a subscription list, that list is
    prepended to the subscription list of all other entries. For example,
    "*,!control,!control.*,!junk,!foo.*" could be used to set the default
    subscription list for all other feeds so that local postings are not
    propagated unless "foo.*" explicitly appears in the site's subscription
    list. This feature tends to be somewhat confusing since the default
    subscription is prepended and can be overridden by other patterns.

    If the "ME" entry has a distribution sub-field, only articles that match
    that distribution list are accepted and all other articles are rejected.
    A common use for this is to put something like "/!local" in the "ME"
    entry to reject local postings from other misconfigured sites.

This is *not* the behavior of those fields elsewhere; you have to know
what they do in ME in particular.

(The newsfeeds file syntax is admittedly awful, and if we were writing INN
from scratch today, it would use a much different syntax.  But it's very,
very old and entrenched.)

-- 
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.
Re: Given up on Diablo, now having troubles with INN instead!
#85748
Author: Martin Ward
Date: Mon, 01 Jul 2013 07:38
18 lines
1864 bytes
Russ Allbery <rra@stanford.edu> wrote:
> You've read newsfeeds(5)?  It goes into quite a lot of depth on this; if
> it still doesn't make sense, could you ask more specific questions?  I'm
> not sure what part to clarify.

I have read it thanks. The bit that consfuses is:


>    If the "ME" entry has a distribution sub-field, only articles that match
>    that distribution list are accepted and all other articles are rejected.

which I believe is in reference to the second sub-field (the first one being
"ME".

In some examples this field has a / whereas in others it doesn't; I cannot
figure out whether to use / or not.

 |\/|
Re: Given up on Diablo, now having troubles with INN instead!
#85751
Author: Russ Allbery
Date: Mon, 01 Jul 2013 08:18
38 lines
2837 bytes
Martin Ward <mward@nowhere.invalid> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>>    If the "ME" entry has a distribution sub-field, only articles that match
>>    that distribution list are accepted and all other articles are rejected.

> which I believe is in reference to the second sub-field (the first one
> being "ME".

No, it's a reference to the distribution subfield specifically, as shown
in the syntax:

        sitename[/exclude,exclude,...]\
            :pattern,pattern...[/distribution,distribution...]\
            :flag,flag...\
            :parameter

sitename is "ME" for the ME entry.  So the distribution subfield is the
bit after the first colon and then after a slash.  (It's a subfield since
it's after a slash in the second *field*, which is the bit between the
first and second colons.)

> In some examples this field has a / whereas in others it doesn't; I
> cannot figure out whether to use / or not.

If there is no /, there is no distribution subfield, only a pattern.

That description of the role of the distribution sub-field in ME is
missing one critical point: that whole statement only applies to articles
with a distribution.  Articles that have no distribution at all will be
accepted regardless of the contents of the distribution subfield of ME.
I'll add that.

-- 
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.
Re: Given up on Diablo, now having troubles with INN instead!
#85753
Author: Julien ÉLIE
Date: Mon, 01 Jul 2013 17:30
25 lines
2483 bytes
Hi Russ,

> That description of the role of the distribution sub-field in ME is
> missing one critical point: that whole statement only applies to articles
> with a distribution.  Articles that have no distribution at all will be
> accepted regardless of the contents of the distribution subfield of ME.
> I'll add that.

Incidentally, INSTALL mentions:

The "ME" entry tends to confuse a lot of people, so this point is worth
repeating:  the newsgroup patterns set the default subscription for
*outgoing* feeds, and the distribution patterns set the acceptable
Distribution: header entries for *incoming* articles.  This is confusing
enough that it may change in later versions of INN.


Should we do something for INN 2.6.0?  and if that is the case, what should
be done?  Change the name of "ME"?  Create two different entries like
"DEFAULT-INCOMING" and "DEFAULT-OUTGOING"?

-- 
Julien ÉLIE

« Se coucher tard… nuit. » (Raymond Devos)
Re: Given up on Diablo, now having troubles with INN instead!
#85754
Author: Russ Allbery
Date: Mon, 01 Jul 2013 19:38
36 lines
3161 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Incidentally, INSTALL mentions:

> The "ME" entry tends to confuse a lot of people, so this point is worth
> repeating:  the newsgroup patterns set the default subscription for
> *outgoing* feeds, and the distribution patterns set the acceptable
> Distribution: header entries for *incoming* articles.  This is confusing
> enough that it may change in later versions of INN.

> Should we do something for INN 2.6.0?  and if that is the case, what
> should be done?  Change the name of "ME"?  Create two different entries
> like "DEFAULT-INCOMING" and "DEFAULT-OUTGOING"?

Well, there are three things you can configure in ME: Path aliases for
your site that indicate you've already seen the article and don't want to
accept it, default outbound feed patterns, and limitations on what
distributions you want to accept.

The default outbound feed patterns do belong in newsfeeds, since they
directly affect how all of the other patterns are interpreted.  But
they're more like the variables that newsfeed supports, except that all
feeds add that variable at the start by default.  I wonder if we should
just declare some particular variable (FEED_PREFIX or something) special
and let you set it to prepend that set of patterns to every feed.

The other two (Path aliases and what distributions to accept) really have
nothing to do with the purpose of newsfeeds.  We could just move both into
inn.conf.  (Or ideally incoming.conf, so that they can be set separately
for different incoming feeds, which would be useful for some purposes.)

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