Fix creation of overview for local group.

This commit is contained in:
Retro_Guy 2023-05-13 00:05:29 -07:00
parent fcde930e54
commit 7f3bf1b416
1 changed files with 2 additions and 0 deletions

View File

@ -429,6 +429,7 @@ function process_post($message, $group) {
// foreach($post_group as $onegroup) { // foreach($post_group as $onegroup) {
// Check for duplicate msgid // Check for duplicate msgid
$duplicate=0; $duplicate=0;
if(file_exists($spooldir."/".$group."-overview")) {
$group_overviewfp=fopen($spooldir."/".$group."-overview", 'r'); $group_overviewfp=fopen($spooldir."/".$group."-overview", 'r');
while($group_overview=fgets($group_overviewfp, 2048)) { while($group_overview=fgets($group_overviewfp, 2048)) {
$overview_msgid = explode("\t", $group_overview); $overview_msgid = explode("\t", $group_overview);
@ -440,6 +441,7 @@ function process_post($message, $group) {
} }
} }
fclose($group_overviewfp); fclose($group_overviewfp);
}
// } // }
if($duplicate == 0) { if($duplicate == 0) {
insert_article($section,$group,$postfilename,$subject[1],$from[1],$article_date,$date_rep,$msgid,$references,$bytes,$lines,$xref,$body); insert_article($section,$group,$postfilename,$subject[1],$from[1],$article_date,$date_rep,$msgid,$references,$bytes,$lines,$xref,$body);