🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88199

Re: Distribution header

#88199
From: Julien ÉLIE
Date: Sat, 01 Feb 2020 10:43
106 lines
4952 bytes
Bonjour Franck,

> I've read RFC 2980 & 3977 (DISTRIB.PATS), RFC 6048 (DISTRIBUTIONS) and 
> RFC 5536 (Header Distribution) but it's always unclear for me.
> 
> Except for "local", could someone explain to me in detail what a server 
> should do when it receives an article with a "Distribution" header?

There's also RFC 5537 (USEPRO):

3.6.  Duties of a Relaying Agent

    An article SHOULD NOT be relayed unless the sending agent has been
    configured to supply, and the receiving agent to receive, at least
    one of the <newsgroup-name>s in its Newsgroups header field and at
    least one of the <dist-name>s in its Distribution header field (if
    present).


6.3.  Leakage

    Articles that are intended to have restricted distribution are
    dependent on the goodwill of every site receiving them.  Restrictions
    on dissemination and retention of articles may be requested via the
    Archive and Distribution header fields, but such requests cannot be
    enforced by the protocol.



> Exactly what steps are taken (if any)?

If the result of "LIST DISTRIB.PATS" for instance contains 
"5:fr.*:france", INN (nnrpd) adds the Distribution header field with the 
value "france" if a posting agent hasn't set a Distribution header field 
itself.

As for relaying articles, I see that the newsfeeds man page gives some 
explanation:
   https://www.eyrie.org/~eagle/software/inn/docs/newsfeeds.html

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

A subscription can be further modified by specifying distributions that 
the site should or should not receive.  The default is to send all 
articles to all sites that subscribe to any of the groups where it has 
been posted, but if an article has a Distribution: header and any 
distributions are specified, then they are checked according to the 
following rules:

- If the Distribution: header matches any of the values in the 
sub-field, the article is sent.

- If a distribution starts with an exclamation point, and it matches the 
Distribution: header, the article is not sent.

- If the Distribution: header does not match any distribution in the 
site's entry and no negations were used, the article is not sent.

- If the Distribution: header does not match any distribution in the 
site's entry and any distribution started with an exclamation point, the 
article is sent.

If an article has more than one distribution specified, then each one is 
handled according according to the above rules.  If any of the specified 
distributions indicate that the article should be sent, it is; if none 
do, it is not sent.  In other words, the rules are used as a logical or.
%%


and


%%
ME:!*/!local,!collabra-internal::

If the ME entry has a distribution sub-field, only articles that match 
that distribution list are accepted and all other articles with a 
distribution 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.  The distribution sub-field of ME has no effect on 
the acceptance or rejection of articles that do not have a Distribution 
header field.
%%



> - If the name given in this header is not configured on the server,
> - If the newsgroups listed in the "Newsgroups" header do not match the 
> distribution pattern,
> - Other cases?
> 
> Thanks in advance to those who will take the time to enlighten me on the 
> subject.

I hope this helps.
Basically, distributions permit to reject received articles (like 
"local") and to not propagate them to some or all peers.

-- 
Julien ÉLIE

« Ma parole… Vous êtes soûls ! Heu ! Sourds… » (Astérix)
Technical Details
Message-ID: <r13ko9$vil$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <r12vsf$1kke$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <r13ko9$vil$1@news.trigofacile.com>
Subject: Re: Distribution header
Date: Sat, 1 Feb 2020 11:43:16 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <r12vsf$1kke$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 1 Feb 2020 10:43:21 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a775003926c4202c9a6030.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:3926:c420:2c9a:6030"; logging-data="32341"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.4.2
In-Reply-To: <r12vsf$1kke$1@gioia.aioe.org>
Content-Language: fr