Spam programs can operate different from one another. Usually they are weighted on some score. For example a cutoff threshold may be 10 points. The spam program will assign 1 point if the message is all caps. It may assign 3 point if more than 3 exclamation points are in the subject. It will continue to assign points and if the total surpasses the cutoff threshold, it is flagged as spam.