chiark / gitweb /
Restore the suspicious posters list
authorMatthew Vernon <matthew@debian.org>
Sun, 5 Jan 2014 13:21:17 +0000 (13:21 +0000)
committerMatthew Vernon <matthew@debian.org>
Sun, 5 Jan 2014 13:21:17 +0000 (13:21 +0000)
ULM mods have decided they'd rather have a watch list for posters than
a ban list. The first part of making that change is reverting the bits
of the remove_steps branch that removed the watched posters list.

webstump/doc/help/filter-lists.html
webstump/scripts/filter.lib.pl
webstump/scripts/html_output.pl
webstump/scripts/webstump.lib.pl

index 595edffc968ca57003efb098f4113cfe6a6c8c56..fe7fad74165650b2abeb989de14870a4a5beb8f1 100644 (file)
@@ -18,6 +18,9 @@ The algorithm for every incoming article is as follows:
   <LI> Reject message if the author is listed in <A
        HREF=##bad.posters.list>the List of Banned Posters.</A>.
 
+  <LI> File message for human review if the author is listed in <A
+       HREF=##watch.posters.list>the List of Untrusted Posters</A>.
+
   <LI> File message for human review if the article contains words from <A
        HREF=##watch.words.list>the List of Suspicious Words</A>.
 
index d9e460e4de6b5d56d98b9796c75a76697d29d314..b82a55a52e836b46979827242141b983c6ca66e8 100644 (file)
@@ -102,6 +102,12 @@ sub review_incoming_message { # Newsgroup, From, Subject, RealSubject, Message,
 
   $ignore_demo_mode = 1;
 
+  if( $match = &name_is_in_list( $from, "watch.posters.list" ) ) {
+    &append_to_file( $warning_file, "Warning: poster '$from' matches '$match' from the list of suspicious posters\n" );
+print STDERR "Filing Article for review because poster '$from' matches '$match'\n";
+    return; # file message
+  }
+
   if( $match = &name_is_in_list( $message, "watch.words.list" ) ) {
     &append_to_file( $warning_file, "Warning: article matches '$match' from the list of suspicious words\n" );
 print STDERR "Filing Article for review because article matches '$match'\n";
index c9d9ce6f92b5fddcb98f02355806806212d61d08..505ff3251d3920d07797411c9418e70e10fa0d5e 100644 (file)
@@ -754,6 +754,7 @@ sub html_newsgroup_management {
   Configuration List: <SELECT NAME=list_to_edit>
 
     <OPTION VALUE=good.posters.list>Good Posters List
+    <OPTION VALUE=watch.posters.list>Suspicious Posters List
     <OPTION VALUE=bad.posters.list>Banned Posters List
     <OPTION VALUE=watch.words.list>Suspicious Words List
 
index 5bd575f16bec8d738577813ccefd21f5aca7b021..379cf0602bbf87c61b2c393d2e5ac02195baa4d2 100644 (file)
@@ -397,6 +397,7 @@ sub check_config_list {
 
  &user_error( "invalid list name $list_to_edit" )
     if( $list_to_edit ne "good.posters.list"
+        && $list_to_edit ne "watch.posters.list"
         && $list_to_edit ne "bad.posters.list"
         && $list_to_edit ne "watch.words.list" );