From 0915e8a7fe61c0fac3966eb258111dc629c61bb4 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 29 Oct 2023 03:09:49 -0700 Subject: [PATCH] Rename incoming nocem articles for easier id. --- Rocksolid_Light/rslight/scripts/spoolnews.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rslight/scripts/spoolnews.php b/Rocksolid_Light/rslight/scripts/spoolnews.php index 0d553c9..1aa703f 100644 --- a/Rocksolid_Light/rslight/scripts/spoolnews.php +++ b/Rocksolid_Light/rslight/scripts/spoolnews.php @@ -297,7 +297,7 @@ function get_articles($ns, $group) } else { $artnum = get_next_article_number($agroup); } - if($artnum > 0) { + if ($artnum > 0) { $current_article['xref'] .= ' ' . $agroup . ':' . $artnum; } } @@ -398,7 +398,8 @@ function get_articles($ns, $group) } else { if ((strpos($CONFIG['nocem_groups'], $group) !== false) && ($CONFIG['enable_nocem'] == true)) { if (strpos($subject[1], $nocem_check) !== false) { - $nocem_file = tempnam($spooldir . "/nocem", "nocem-" . $group . "-"); + $is_from = address_decode($from[1], 'nowhere'); + $nocem_file = tempnam($spooldir . "/nocem", $is_from[0]['mailbox'] . "@" . $is_from[0]['host'] . "[".date("Y.m.d.H.i.s")."]"); copy($grouppath . "/" . $local, $nocem_file); } }