diff src/filter.c @ 212:21200ce10e68 noffle

[svn] filter post-status=mod|yes|no.
author mirkol
date Thu, 22 Nov 2001 12:04:45 +0000
parents 24d4cd032da5
children 0340b9c17edc
line wrap: on
line diff
--- a/src/filter.c	Thu Nov 22 12:03:01 2001 +0000
+++ b/src/filter.c	Thu Nov 22 12:04:45 2001 +0000
@@ -3,7 +3,7 @@
   
   Article filtering.
   
-  $Id: filter.c 316 2001-10-31 11:44:53Z bears $
+  $Id: filter.c 331 2001-11-22 12:04:45Z mirkol $
 */
 
 #if HAVE_CONFIG_H
@@ -16,6 +16,7 @@
 #include "itemlist.h"
 #include "log.h"
 #include "wildmat.h"
+#include "group.h"
 
 struct
 {
@@ -147,6 +148,12 @@
 	    return FALSE;
 	ul = countGroups( newsgroups );
 	return ( ul > r->data.amount );
+
+    case RULE_POST_STATUS:
+	if ( Grp_postAllow( thisGrp ) == r->data.postAllow )
+	    return TRUE;
+        return FALSE;
+
     }
 
     ASSERT( FALSE );	/* Shouldn't get here */