Add setting for 'type' in nocemlist in tools.

This commit is contained in:
Retro_Guy 2024-04-08 05:52:39 -07:00
parent fb84bef830
commit f179bb828c
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,10 @@ $nntpserver = "news.example.com";
$nntpuser = "nntpusername";
$nntppassword = "nntppassword";
// They 'type' for your nocem (spam, abuse, etc.)
// Comma separated
$type = "spam";
// Your gpg signing key:
$signing_key = "XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX";
// URL to view/download key:

View File

@ -62,7 +62,7 @@ if(isset($followup_to)) {
}
fwrite($header_file, "From: $from\n");
fwrite($header_file, "Newsgroups: $spamgroup\n");
fwrite($header_file, "Subject: @@NCM NoCeM notice $thishash spam/hide ($count $article)\n");
fwrite($header_file, "Subject: @@NCM NoCeM notice $thishash $type ($count $article)\n");
fwrite($header_file, "Content-Type: text/plain; charset=utf-8; format=flowed\n");
fwrite($header_file, "Content-Transfer-Encoding: 8bit\n");
fwrite($header_file, "Organization: $organization\n");
@ -85,7 +85,7 @@ fwrite($nocem_file, "For information contact $contact.\n\n");
fwrite($nocem_file, "@@BEGIN NCM HEADERS\n");
fwrite($nocem_file, "Version: 0.93\n");
fwrite($nocem_file, "Issuer: $from_email\n");
fwrite($nocem_file, "Type: spam\n");
fwrite($nocem_file, "Type: $type\n");
fwrite($nocem_file, "Action: hide\n");
fwrite($nocem_file, "Count: ".$count."\n");
fwrite($nocem_file, "Notice-ID: ".$thishash."\n");