chiark / gitweb /
Restore the suspicious posters list
[modbot-uram.git] / webstump / scripts / filter.lib.pl
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";