I am hoping to write a SpamAssassin rule that will match if an e-mail contains over n
of a specific character in the body of the message. Not necessarily continuous. So for example, if there were ten total asterisks in a message, then match the rule.
I know how to write a rule if there are ten continuous asterisks, like so:
body TEN_ASTERISKS /(**********)/
score TEN_ASTERISKS 0.5
describe TEN_ASTERISKS Message body contains ten asterisks.
How would I re-write the rule to match on ten total asterisks, not necessarily in a row?