Avoid duplicate X-Rslight-Original-Group header

This commit is contained in:
Retro_Guy 2021-11-05 05:28:09 +00:00
parent 7914113167
commit 9ea4ace935
1 changed files with 3 additions and 1 deletions

View File

@ -392,7 +392,9 @@ function process_post($message, $group) {
fputs($postfilehandle, "Organization: ".$CONFIG['organization']."\r\n");
}
if($res === 1) {
fputs($postfilehandle,"X-Rslight-Original-Group: ".$orig_newsgroups."\r\n");
if($orig_newsgroups !== $CONFIG['spamgroup']) {
fputs($postfilehandle,"X-Rslight-Original-Group: ".$orig_newsgroups."\r\n");
}
}
foreach($message as $line) {
if(stripos($line, "Newsgroups: ") === 0) {