It is build using a model that can classify messages (ham/spam/marketing), packaged for Apple Mail but could be used in other places.