# HG changeset patch # User bears # Date 989406931 -3600 # Node ID f973675760dc633cc01d4dbf3fa09cdf246a9c60 # Parent bed46fc935df3d99b3dd7bb00519dc3837908bce [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. diff -r bed46fc935df -r f973675760dc ChangeLog --- a/ChangeLog Tue May 01 19:14:08 2001 +0100 +++ b/ChangeLog Wed May 09 12:15:31 2001 +0100 @@ -1,3 +1,9 @@ +Tue May 8 2001 Jim Hague + + * 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. + Tue May 01 2001 Markus Enzenberger * src/server.c: do not search all groups if group does not diff -r bed46fc935df -r f973675760dc src/post.c --- a/src/post.c Tue May 01 19:14:08 2001 +0100 +++ b/src/post.c Wed May 09 12:15:31 2001 +0100 @@ -1,7 +1,7 @@ /* post.c - $Id: post.c 230 2000-10-27 12:35:51Z bears $ + $Id: post.c 278 2001-05-09 11:15:31Z bears $ */ #if HAVE_CONFIG_H @@ -520,7 +520,14 @@ grp = Itl_next( article.newsgroups ) ) { local = Grp_local( grp ); - if ( ! ( postLocal || local ) ) + + /* + * Only post locally to external group if that group's post + * status is 'y'. Otherwise retrieve from upstream server - + * for example, we don't want to immediately post locally articles + * destined for the moderator of a moderated group. + */ + if ( ! local && ( ! postLocal || Grp_postAllow( grp ) != 'y' ) ) continue; err = addToGroup( grp ) && err; }