🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Avon Kerr Wed, 30 Dec 2015 18:13
readers.conf
#87292
Author: Avon Kerr
Date: Wed, 30 Dec 2015 18:13
26 lines
1719 bytes
Hi all.

When defining an access group and using the 'read' and 'post' keys - is 
it permitted to use wildmat values such as those specified in newsfeeds?

I'm wanting to offer access to read/post to all groups excluding 
binaries, warez etc. so am considering something like the following.


read: "*,!junk,!control,!
control.*,@*.bina*,@*.bain*,@*.dateien*,@*.pictures*"

Is the use of @newsgroup.* syntax permitted in readers.conf or should it 
be !newsgroup.* - not 100% on using wildmat formatting in readers.conf

At present I have defined explicitly what can be read/posted to but 
realized it's better to find a way to say access is open to all groups 
and then apply exclusions - sound correct?

Best, Paul.

-- 
Agency News | news.bbs.geek.nz

Re: readers.conf
#87294
Author: Avon Kerr
Date: Thu, 31 Dec 2015 04:15
17 lines
1422 bytes
On Thu, 31 Dec 2015 07:13:02 +1300, Avon Kerr wrote:

> 
> Is the use of @newsgroup.* syntax permitted in readers.conf or should it
> be !newsgroup.* - not 100% on using wildmat formatting in readers.conf
> 

As a follow-up to this it seems like !newsgroup.* is the way to go and 
works... while I think @newsgroup.* syntax is best left for the newsfeeds 
file. I think that's right?

Best, Paul.

-- 
Agency News | news.bbs.geek.nz

Re: readers.conf
#87295
Author: Russ Allbery
Date: Thu, 31 Dec 2015 05:29
42 lines
2623 bytes
Avon Kerr <avon@bbs.geek.nz.invalid> writes:
> On Thu, 31 Dec 2015 07:13:02 +1300, Avon Kerr wrote:

>> Is the use of @newsgroup.* syntax permitted in readers.conf or should it
>> be !newsgroup.* - not 100% on using wildmat formatting in readers.conf

> As a follow-up to this it seems like !newsgroup.* is the way to go and
> works... while I think @newsgroup.* syntax is best left for the
> newsfeeds file. I think that's right?

readers.conf doesn't support the @ syntax, but does support the ! syntax.
This is less well-documented than it could be, but it is mentioned:

    An access group definition usually looks like:

        access <name> {
            users: <identity-wildmat>
            newsgroups: <group-wildmat>
            # ...possibly other settings
        }

    Again, <name> is just for documentation purposes. This says that all users
    whose identity matches <identity-wildmat> can read and post to all
    newsgroups matching <group-wildmat> (as before, comma-separated wildmat
    expressions are allowed, but "@" is not supported).

@ has special "poison" meaning when matching against a whole list of
newsgroups.  It actually could be useful in the post and newsgroups
parameters in readers.conf, but right now I think it's only supported in
newsfeeds and incoming.conf.

For what you said you wanted to do in the original post, I think ! will
probably be sufficient.  The distinction is only really important for
crossposts.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: readers.conf
#87296
Author: Avon Kerr
Date: Thu, 31 Dec 2015 06:51
47 lines
2499 bytes
On Wed, 30 Dec 2015 21:29:00 -0800, Russ Allbery wrote:

> readers.conf doesn't support the @ syntax, but does support the !
> syntax.
> This is less well-documented than it could be, but it is mentioned:
> 

Hi Russ,

Firstly may I wish you (and others reading) a Happy New Year :)

In New Zealand as I type this we're the first in the world to see in the 
new year and it's about 7.50pm as I type this on New Year's eve...so I'm 
getting in my 'happy new year's' early!

Thanks for confirming what I suspected..


> @ has special "poison" meaning when matching against a whole list of
> newsgroups.  It actually could be useful in the post and newsgroups
> parameters in readers.conf, but right now I think it's only supported in
> newsfeeds and incoming.conf.

In some regards I suggest it would be a useful thing to be able to add to 
the readers.conf file. Given it seems many admin use their newsfeeds @ 
'poison' syntax to try to avoid getting certain newsgroups in the first 
instance it makes sense to me to also apply the same rules to the read/
post settings in readers.conf if you are also trying to avoid offering 
users the very same thing you are trying to negate arriving on your NNTP 
server.

> 
> For what you said you wanted to do in the original post, I think ! will
> probably be sufficient.  The distinction is only really important for
> crossposts.

Best, Paul






-- 
Agency News | news.bbs.geek.nz

Re: readers.conf
#87303
Author: Julien ÉLIE
Date: Fri, 08 Jan 2016 21:51
30 lines
2220 bytes
Hi Paul,

>> @ has special "poison" meaning when matching against a whole list of
>> newsgroups.
>
> In some regards I suggest it would be a useful thing to be able to add to
> the readers.conf file. Given it seems many admin use their newsfeeds @
> 'poison' syntax to try to avoid getting certain newsgroups in the first
> instance it makes sense to me to also apply the same rules to the read/
> post settings in readers.conf if you are also trying to avoid offering
> users the very same thing you are trying to negate arriving on your NNTP
> server.

Isn't it the current behaviour of "!" as far as readers.conf is 
concerned?  "!" acts the same way as "@" here.

Homogenizing the meaning of "!" in INN and adding support for both "!" 
and "@" for readers.conf is not trivial.  That need is recorded in 
ticket #43:
     https://inn.eyrie.org/trac/ticket/43


Happy new year to you too!

-- 
Julien ÉLIE

« Affirmanti incumbit probatio. »

Re: readers.conf
#87307
Author: Avon Kerr
Date: Sat, 09 Jan 2016 20:04
45 lines
2676 bytes
On Fri, 08 Jan 2016 22:51:47 +0100, Julien ÉLIE wrote:

> Hi Paul,

Hi Julien,

> Happy new year to you too!

Happy New Year to you also :)

>> In some regards I suggest it would be a useful thing to be able to add
>> to the readers.conf file. Given it seems many admin use their newsfeeds
>> @ 'poison' syntax to try to avoid getting certain newsgroups in the
>> first instance it makes sense to me to also apply the same rules to the
>> read/ post settings in readers.conf if you are also trying to avoid
>> offering users the very same thing you are trying to negate arriving on
>> your NNTP server.
> 
> Isn't it the current behaviour of "!" as far as readers.conf is
> concerned?  "!" acts the same way as "@" here.

That's what I discovered, but at the time of doing so I was just trying to 
suggest a means by which the syntax used in the newsfeeds configuration 
file could easily be applied to the readers.conf as well.

> Homogenizing the meaning of "!" in INN and adding support for both "!"
> and "@" for readers.conf is not trivial.  That need is recorded in
> ticket #43:
>      https://inn.eyrie.org/trac/ticket/43


Aha, it's good to know someone else had thought of this suggestion before 
I. 

I'm understanding that it would require a lot of work to implement and 
don't consider such a feature as essential or urgent. I guess if someone 
had the time and inclination to implement it, then it would be a welcome 
addition. But until then everything is fine as it is :-)

Best, Paul

-- 
Agency News | news.bbs.geek.nz

Re: readers.conf
#87308
Author: Julien ÉLIE
Date: Sun, 10 Jan 2016 16:11
41 lines
2841 bytes
Paul,

>> Isn't it the current behaviour of "!" as far as readers.conf is
>> concerned?  "!" acts the same way as "@" here.
>
> That's what I discovered, but at the time of doing so I was just trying to
> suggest a means by which the syntax used in the newsfeeds configuration
> file could easily be applied to the readers.conf as well.

I understand.  It would indeed be useful.

Anyway, it seems that "!" has the usual behaviour, and that "@" is just 
unsupported.  I've updated the description of ticker #43 accordingly:
     https://inn.eyrie.org/trac/ticket/43

The rationale behind that is "If we can read it in one group, we can 
read it, period." (quoted from a comment in the source code).

#43 is therefore more an improvement (new functionality) than a defect.



Russ, do you remember the meaning of the last sentence of the ticket?
"Obviously, the distinction only applies to articles retrieved via 
message ID rather than by reading a group."

Would it mean that if I have read access to 
"news.software.nntp,@news.misc", I do not see an article crossposted to 
"news.software.nntp,news.misc" if I retrieve it via message-ID (ARTICLE 
<mid>) but I can see it when reading news.software.nntp (ARTICLE number)?

Or were you only speaking of entering a group (GROUP), in which case 
"!news.misc" and "@news.misc" are equivalent, and the article is not 
seen when retrieved, whatever method is used?

-- 
Julien ÉLIE

« Donec eris felix, multos numerabis amicos. » (Ovide)

Re: readers.conf
#87309
Author: Russ Allbery
Date: Sun, 10 Jan 2016 18:37
28 lines
2393 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Russ, do you remember the meaning of the last sentence of the ticket?
> "Obviously, the distinction only applies to articles retrieved via message
> ID rather than by reading a group."

> Would it mean that if I have read access to
> "news.software.nntp,@news.misc", I do not see an article crossposted to
> "news.software.nntp,news.misc" if I retrieve it via message-ID (ARTICLE
> <mid>) but I can see it when reading news.software.nntp (ARTICLE number)?

I think I was thinking that.  I suppose that we could implement it a
different way and actually apply the filter on every article retrieval
inside the group, but then you'd have to filter overview data (and
HDR/XPAT data), and things get irritatingly complex.

Retrieval by message ID is fairly straightforward, but preventing reading
of crossposted articles in general, and I'm not sure there's really a use
case for this.  (I suspect people are mostly worried about preventing
POST, not the reading side.)

-- 
Russ Allbery (eagle@eyrie.org)              <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