comparison src/post.c @ 179:f973675760dc noffle

[svn] * src/post.c: If post-locally is set, only do immediate local posting on groups with status 'y'. We don't want to post locally articles destined for the moderator of a moderated group.
author bears
date Wed, 09 May 2001 12:15:31 +0100
parents 945501c95a4e
children fed1334d766b
comparison
equal deleted inserted replaced
178:bed46fc935df 179:f973675760dc
1 /* 1 /*
2 post.c 2 post.c
3 3
4 $Id: post.c 230 2000-10-27 12:35:51Z bears $ 4 $Id: post.c 278 2001-05-09 11:15:31Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
518 for( grp = Itl_first( article.newsgroups ); 518 for( grp = Itl_first( article.newsgroups );
519 grp != NULL; 519 grp != NULL;
520 grp = Itl_next( article.newsgroups ) ) 520 grp = Itl_next( article.newsgroups ) )
521 { 521 {
522 local = Grp_local( grp ); 522 local = Grp_local( grp );
523 if ( ! ( postLocal || local ) ) 523
524 /*
525 * Only post locally to external group if that group's post
526 * status is 'y'. Otherwise retrieve from upstream server -
527 * for example, we don't want to immediately post locally articles
528 * destined for the moderator of a moderated group.
529 */
530 if ( ! local && ( ! postLocal || Grp_postAllow( grp ) != 'y' ) )
524 continue; 531 continue;
525 err = addToGroup( grp ) && err; 532 err = addToGroup( grp ) && err;
526 } 533 }
527 534
528 return postExternal() && err; 535 return postExternal() && err;