Great hint. Hazel can be a bit redundant here, you could time trigger a script in KM but I understand if you use Hazel for other things it’s nice to have rules in one place.
Maybe you could achieve similar thing to add running applescript as part of Mail rules but in that case Mail app must be open, not sure if it can process ruless in background