diff src/post.c @ 153:945501c95a4e noffle

[svn] Undo change to post.c that only sent moderated articles to one server. Suppose you have a cross-posted article that goes to a moderated general group (via the usual server) *and* a moderated special-purpose group via a special server that doesn't talk to the rest of the world. Send only to one and something will get lost.
author bears
date Fri, 27 Oct 2000 13:35:51 +0100
parents ca9769519c96
children f973675760dc
line wrap: on
line diff
--- a/src/post.c	Thu Oct 26 22:55:49 2000 +0100
+++ b/src/post.c	Fri Oct 27 13:35:51 2000 +0100
@@ -1,7 +1,7 @@
 /*
   post.c
 
-  $Id: post.c 229 2000-10-26 21:55:49Z bears $
+  $Id: post.c 230 2000-10-27 12:35:51Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -422,14 +422,14 @@
 {
     const char * grp;
     Str serversSeen;
-    Bool err, modPosted;
+    Bool err;
 
     /*
      * For each external group, send to that group's server if it has
      * not seen the post already.
      */
     serversSeen[ 0 ] = '\0';
-    err = modPosted = FALSE;
+    err = FALSE;
     
     for ( grp = Itl_first( article.newsgroups );
 	  grp != NULL;
@@ -438,25 +438,15 @@
 	if ( Grp_exists( grp ) && ! Grp_local( grp ) )
 	{
 	    const char * servName = Grp_server( grp );
-	    Bool moderated = ( Grp_postAllow( grp ) == 'm' );
 
 	    if ( strstr( serversSeen, servName ) != NULL )
 		continue;
 
-	    if ( moderated && modPosted )
-		continue;
-	    
 	    if ( ! Out_add( servName, article.over.msgId, article.text ) )
 	    {
 		Log_err( "Cannot add posted article to outgoing directory" );
 		err = TRUE;
 	    }
-	    /*
-	     * If moderated group, send to one server only. Don't want to
-	     * mailbomb the moderator.
-	     */
-	    else if ( moderated )
-		modPosted = TRUE;
 	    
 	    Utl_catStr( serversSeen, " " );
 	    Utl_catStr( serversSeen, servName );