How does the SPAM filtering work?

Our spam filtering uses a combination of open source and commercial applications. Each email received by our mail server is analysed for spam like qualities. For example we will take a look at an email with the subject of "Mortgage rates at 40 year Low AA".