Hmm. That gives me a straight idea: apply Bayesian mail filtering to detect active content and use it to build a filter for active content in email or also websites

At freshmeat.net there is the original article.