Add X-Rslight-Posting-User to outgoing messages

This commit is contained in:
Retro_Guy 2022-01-26 08:00:34 +00:00
parent 6c4b8a07e1
commit bb82443224
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,7 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e
fputs($ns,'Newsgroups: '.$newsgroups."\r\n");
$sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT);
fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n");
fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n");
if(isset($encryptthis)) {
fputs($ns,'X-Rslight-To: '.$encryptto."\r\n");
$CONFIG['postfooter']="";
@ -367,6 +368,7 @@ function message_post_with_attachment($subject,$from,$newsgroups,$ref,$body,$enc
}
$sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT);
fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n");
fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n");
if(isset($encryptthis))
fputs($ns,'X-Rslight-To: '.$encryptto."\r\n");
fputs($ns,'From: '.$from."\r\n");