A spam filter reads an email word by word. Assuming the words are independent given the class, each word multiplies the odds of spam by its likelihood ratio, so on a log scale the evidence simply adds up.