By Avi Pfeffer
A spam filter consists of two components. In this article, based on my book Practical Probabilistic Programming , first describe the architecture of the reasoning component and then the learning component architecture.

Architecture of a Spam Filter Application (PDF)