.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DISTRIB.PATS 5" .TH DISTRIB.PATS 5 2024-02-12 "INN 2.7.2" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME distrib.pats \- Default values for the Distribution header field .SH DESCRIPTION .IX Header "DESCRIPTION" The file \fIpathetc\fR/distrib.pats is used by \fBnnrpd\fR to determine the default body of the Distribution header field. Blank lines and lines beginning with a number sign (\f(CW\*(C`#\*(C'\fR) are ignored. All other lines consist of three fields separated by a colon: .PP .Vb 1 \& :: .Ve .PP The first field is the weight to assign to this match. If a newsgroup matches multiple lines, the line with the highest weight is used. This should be an arbitrary integer greater than zero. The order of lines in the file is only important if groups have equal weight (in which case, the first matching line will be used). .PP The second field is either the name of a newsgroup or a \fIuwildmat\fR\-style pattern to specify a set of newsgroups. .PP The third field is the body that should be used for the Distribution header field of a posted article, if this line was picked as the best match and no Distribution header field was supplied by the user. It can be an empty string, specifying that no Distribution header field should be added. If it is not empty, it is better to only use US-ASCII characters for that field; otherwise, make sure it is encoded in UTF\-8. .PP When a post is received by \fBnnrpd\fR that does not already contain a Distribution header field, each newsgroup to which an article is posted will be checked against this file in turn, and the matching line with the highest weight will be used as the body of the Distribution header field. If no lines match, or if the matching line has an empty string for its third field, no header field will be added. In case a distribution is added by \fBnnrpd\fR, make sure it is not rejected by the \fInewsfeeds\fR \f(CW\*(C`ME\*(C'\fR entry. .PP A list of recommended distributions can be specified and described in distributions(5). .SH HISTORY .IX Header "HISTORY" Written by Rich $alz for InterNetNews. Converted to POD by Russ Allbery . .SH "SEE ALSO" .IX Header "SEE ALSO" distributions(5), inn.conf(5), libinn_uwildmat(3), newsfeeds(5), nnrpd(8).