I've put a couple of rules in place with HPT's filter capabilities:
If $fromname is empty or begins with whitespace then mark the message as bad If $toname is empty or begins with whitespace then mark the message as bad If $subject is empty or begins with whitespace then mark the message as bad
I'd like to hear others comments on these checks, do they seem sane? Mystic
I've also added some checks in there for either an invalid date or +/- 90 days then mark the message as bad.
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.
I dont do anything to those fields if they have a value, and it starts with a whitespace though. Maybe I should?
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.
Have you used the "-tooold 60" statement in your echo line in the hpt config? That helps a lot.
I posted a patch to the husky echo back on 10th October last year that, covers something like what your script is doing for the date issue.
Have you used the "-tooold 60" statement in your echo line in the
hpt config? That helps a lot.
I do have -tooOld 90 -tooNew 30 set with EchoAreaDefaults but it only seems to check the packet date, not the date on the message.
I posted a patch to the husky echo back on 10th October last year
that, covers something like what your script is doing for the
date issue.
I missed that, do you know if that patch also made it to github?
| Sysop: | Weed Hopper |
|---|---|
| Location: | Clearwater, FL |
| Users: | 15 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 214:58:25 |
| Calls: | 149 |
| Files: | 50,602 |
| D/L today: |
165 files (36,737K bytes) |
| Messages: | 342,818 |