Thanks for the reply! I've seen that setting already. In there, I can define the threshold at which spam messages get deleted, not the threshold at which spam message subjects get rewritten. Or did I overlook something?

Deleting at 5 is fine. But I also want to rewrite the subject if the spam index is between 2 and 5, so that these messages will be moved to the spam folder instead, and not permanently deleted.