Check each group in nocem message properly

This commit is contained in:
Retro_Guy 2021-06-04 03:43:52 +00:00
parent 4096ff8d18
commit e8286a331d
1 changed files with 4 additions and 2 deletions

View File

@ -55,8 +55,10 @@
} }
if((isset($nocem_line[0]) && $nocem_line[0] == '<') && $start == 1) { if((isset($nocem_line[0]) && $nocem_line[0] == '<') && $start == 1) {
$found = explode(' ', $nocem_line); $found = explode(' ', $nocem_line);
echo 'SEARCH: '.$found[0].' IN: '.$found[1]."\r\n"; $msgid = $found[0];
delete_message($found[0], $found[1]); foreach($found as $found_group) {
delete_message($msgid, $found_group);
}
} }
} }
rename($nocem_file, $nocem_path."processed/".$message); rename($nocem_file, $nocem_path."processed/".$message);