';
}
-
$this_output = ' ';
$this_output.= ''.mb_decode_mimeheader($output[1])."\r\n";
$this_output.= ' ';
$this_output.= ''.$groupname.'';
$this_output.= ' ';
-
if((isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) && (strpos($fromoutput[0], '@') !== false)) {
$poster_name = truncate_email($fromoutput[0]);
} else {
@@ -294,7 +296,8 @@ foreach($files as $article) {
}
$this_output.= "".htmlspecialchars($mysnippet, ENT_QUOTES)." \r\n";
$this_output.= ' |
';
- $this_overboard[] = $this_output;
+ $this_overboard[$thismsgid] = $this_output;
+
if($results++ > ($maxdisplay - 2))
break;
}
diff --git a/Rocksolid_Light/rslight/scripts/nocem.php b/Rocksolid_Light/rslight/scripts/nocem.php
index 7f566f1..6c75625 100755
--- a/Rocksolid_Light/rslight/scripts/nocem.php
+++ b/Rocksolid_Light/rslight/scripts/nocem.php
@@ -137,6 +137,28 @@ function delete_message($messageid, $group) {
rename($out_overview, $this_overview);
chown($this_overview, $CONFIG['webserver_user']);
chgrp($this_overview, $webserver_group);
+ delete_message_from_overboard($config_name, $group, $messageid);
return;
}
+
+function delete_message_from_overboard($config_name, $group, $messageid) {
+ GLOBAL $spooldir;
+ $delkey = hash('crc32', serialize($messageid));
+ $cachefile=$spooldir."/".$config_name."-overboard.dat";
+ if(is_file($cachefile)) {
+ $cached_overboard = unserialize(file_get_contents($cachefile));
+ if(isset($cached_overboard[$delkey])) {
+ unset($cached_overboard[$delkey]);
+ file_put_contents($cachefile, serialize($cached_overboard));
+ }
+ }
+ $cachefile=$spooldir."/".$group."-overboard.dat";
+ if(is_file($cachefile)) {
+ $cached_overboard = unserialize(file_get_contents($cachefile));
+ if(isset($cached_overboard[$delkey])) {
+ unset($cached_overboard[$delkey]);
+ file_put_contents($cachefile, serialize($cached_overboard));
+ }
+ }
+}
?>