Add Supersedes: support. Disabled by default.

This commit is contained in:
Retro_Guy 2024-11-05 02:36:19 -07:00
parent 5a5b435900
commit 704f36a75d
2 changed files with 5 additions and 1 deletions

View File

@ -116,6 +116,10 @@ return [
// Disable toggle to send interBBS Mail to email
'disable_mail_to_email' => true,
// Enable Supersedes. This is dependent on your 'remote' server
// Default is false (Superseded articles will NOT be deleted)
'enable_supersedes_support' => false,
// Disable New Articles link on groups page
'overboard_disable_new_link' => false,

View File

@ -574,7 +574,7 @@ function get_articles($ns, $group)
file_put_contents($debug_log, "\n" . format_log_date() . " Found Supersedes: " . $mid[1] . " for: " . $supersedes, FILE_APPEND);
if(!check_remote_for_msgid($supersedes)) {
file_put_contents($debug_log, "\n" . format_log_date() . " Will delete: " . $supersedes, FILE_APPEND);
// delete_message($supersedes);
delete_message($supersedes);
}
}
}