The spam filter influences the number of times a comment needs to be flagged before it becomes [flagged] and gets killed, but if it says [flagged], someone used the "flag" button at least once. Sometimes just downvoting a spam comment is enough to kill it; those just get marked [dead] and not [flagged].