Prune failed files in nocem and send.
This commit is contained in:
parent
17ad7a29cf
commit
11b612a230
|
@ -65,6 +65,8 @@ foreach ($messages as $message) {
|
|||
}
|
||||
rename($nocem_file, $nocem_path . "processed/" . $message);
|
||||
}
|
||||
prune_dir_by_days($nocem_path . "processed/", 30);
|
||||
prune_dir_by_days($nocem_path . "failed/", 30);
|
||||
unlink($lockfile);
|
||||
exit();
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ function post_articles($ns, $spooldir)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
prune_dir_by_days($outgoing_dir, 7);
|
||||
return "Messages sent\r\n";
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue