INN commit: trunk (3 files)

INN Commit rra at isc.org
Tue Aug 2 17:33:00 UTC 2011


    Date: Tuesday, August 2, 2011 @ 10:33:00
  Author: iulius
Revision: 9299

remove inncheck warning about an empty newsfeeds ME entry

INN works without problems when the newsfeeds ME entry is empty.  inncheck no
longer warns about an empty ME entry.

Thanks to Florian Schlichting for the patch.

Modified:
  trunk/doc/pod/newsfeeds.pod
  trunk/samples/newsfeeds.in
  trunk/scripts/inncheck.in

-----------------------+
 doc/pod/newsfeeds.pod |    3 +++
 samples/newsfeeds.in  |    4 ++++
 scripts/inncheck.in   |    8 +++-----
 3 files changed, 10 insertions(+), 5 deletions(-)

Modified: doc/pod/newsfeeds.pod
===================================================================
--- doc/pod/newsfeeds.pod	2011-08-01 18:37:12 UTC (rev 9298)
+++ doc/pod/newsfeeds.pod	2011-08-02 17:33:00 UTC (rev 9299)
@@ -194,6 +194,9 @@
 A common use for this is to put something like C</!local> in the C<ME>
 entry to reject local postings from other misconfigured sites.
 
+An empty C<ME> entry is possible, in which case no exclusion patterns will
+be defined.
+
 Finally, it is also possible to set variables in F<newsfeeds> and use them
 later in the file.  A line starting with C<$> sets a variable.  For
 example:

Modified: samples/newsfeeds.in
===================================================================
--- samples/newsfeeds.in	2011-08-01 18:37:12 UTC (rev 9298)
+++ samples/newsfeeds.in	2011-08-02 17:33:00 UTC (rev 9299)
@@ -47,6 +47,10 @@
 # news.example.com in the path (posts passing through that site).
 #ME/news.example.com:!*/!local,!collabra-internal::
 
+# An empty ME entry is possible, in which case no exclusion patterns
+# will be defined.
+#ME:::
+
 # The special feed that handles all newsgroup control messages.  Only
 # disable this if you want to ignore all newsgroup control messages; INN
 # no longer handles any control messages except cancel internally.

Modified: scripts/inncheck.in
===================================================================
--- scripts/inncheck.in	2011-08-01 18:37:12 UTC (rev 9298)
+++ scripts/inncheck.in	2011-08-02 17:33:00 UTC (rev 9299)
@@ -694,7 +694,7 @@
 sub
 newsfeeds
 {
-    my ($next, $start, $me_empty, @muxes, %sites);
+    my ($next, $start, @muxes, %sites);
     my ($site, $pats, $dists, $flags, $param, $type, $k, $v, $defsub);
     my ($bang, $nobang, $prog, $dir);
     my (%variables, $key);
@@ -769,8 +769,6 @@
 		if $flags ne "";
 	    eprint "$file:$start: ME param should be empty\n"
 		if $param ne "";
-	    $me_empty = 1
-		if $pats !~ "/.+";
 	}
 
 	##  If we don't have !junk,!control, give a helpful warning.
@@ -846,8 +844,8 @@
 	eprint "$file:$_\n"
 	    if /`(.*)'/ && !defined $sites{$1};
     }
-    eprint "$file:0: warning you accept all incoming article distributions\n"
-	if !defined $sites{"ME"} || $me_empty;
+    eprint "$file:0: documentation says there must be exactly one ME entry\n"
+	if !defined $sites{"ME"};
 
     print "done.\n"
 	if $verbose > 0;




More information about the inn-committers mailing list