Clean up logging of refusing articles with dates in the future.

This commit is contained in:
Retro_Guy 2024-05-30 11:44:14 -07:00
parent 1ea1ed2132
commit 11ccd228c6
2 changed files with 3 additions and 7 deletions

View File

@ -2837,10 +2837,9 @@ function check_article_integrity($rawmessage)
// Parse the Header:
$message->header = parse_header($rawheader);
// Check if date is in future (allow up to 120 seconds in future)
if ($message->header->date > (time() + 120)) {
file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Skipping message (date in future): " . $message->header->id, FILE_APPEND);
$returnval = " Skipping message (date in future): " . $message->header->id;
// Check if date is in future (allow up to 60 seconds in future)
if ($message->header->date > (time() + 60)) {
$returnval = " Skipping message (date in future): " . $message->header->id . " (" . date('M d H:i:s', $message->header->date) . ")";
return $returnval;
}
// Now we know if the message is a mime-multipart message:

View File

@ -464,9 +464,6 @@ function get_articles($ns, $group)
// CREATE SEARCH SNIPPET
$this_snippet = get_search_snippet($body, $content_type[1], $content_transfer_encoding);
} else {
if ($article_date > time()) {
$article_date = time();
}
touch($articleHandle, $article_date);
}
$current_article['mid'] = $mid[1];