From OpenSCADAWiki
Examples of tools of the SPAM-filter learning:
sa-learn --no-sync --progress --spam /var/tmp/spam # train for SPAM from the folder /var/tmp/spam
sa-learn --no-sync --progress --ham /var/tmp/ham # train for HAM from the folder /var/tmp/ham
sa-learn --sync # sync the learning data
sa-learn --dump magic # see the training results