Patent ID: 7539726

Claim:
A message testing method, comprising: receiving a message; applying a first test method from a plurality of test methods to the message; updating a state of the message based on the first test method; determining whether the state of the message is a determinate classification, wherein further testing of the message is not required; if the state of the message is not a determinate classification: selecting a second test method from the plurality of test methods for application to the message, wherein the selection of the second test method is based on the state of the message and on an amount of resources consumed, the selecting of the second test method including comparing a current result stored in the state of the message and a possible result of the test method selected based on the amount of resources consumed, applying the second test method to the message, updating the state of the message based on the application of the second test method, and processing the message based on the updated state of the message; and if the state of the message is a determinate classification, delivering the message according to the state of the message.