Spam filtering usually done with Naive Bayes algorithm. It's quite simple and there are a lot of implementations in different languages. As with any such classifiers this algorithm requires training. Unlike many others training can be done in production.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.