On 20 Mar 2026, deon said the following...
Clrghouz does the same regarding the "is empty" part - it goes one step further if the body of the message is empty, it discards the message.
Good thinking, I've added in some checks for "if empty" or "is empty after stripping out all blank lines & controls lines".
I dont do anything to those fields if they have a value, and it starts with a whitespace though. Maybe I should?
I've been going back & forth on the "begins with whitespace" thing. I'm thinking a To or From name should never begin with whitespace. I can see a subject having a higher chance of beginning with a space if someone fat-fingered it.
I also validate the date, and if it is future dated (by more than 2
days), or older than 90 (I think), or doesnt resemble a date its discarded.
Right now I'm doing a +/- of the same number of days, it would be trivial to change that to different values for past & future.
Thanks for the feedback, good to know I wasn't way off base.
If anyone is running HPT and wants to try this out, you can find the script here:
https://nrbbs.net/badcheck.pl.txt
Add it to your filter.pl file like this:
BEGIN {
require "badcheck.pl";
}
sub filter {
if (my $rc = badcheck()) {
return $rc;
}
}
Jay
... I was wondering why the ball was getting bigger. Then it hit me
--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
* Origin: Northern Realms (21:3/110)