Explicitly invoke sa-learn with --spam or --ham

This commit is contained in:
Sergio Durigan Junior 2024-12-29 20:36:33 -05:00
parent da125323b6
commit d112e21599
Signed by: sergiodj
GPG key ID: D0EB762865FC5E36

View file

@ -50,7 +50,7 @@ learn_spam()
# Invoking sa-learn.
log "Invoking sa-learn"
/usr/bin/sa-learn -f "${SPAM_LIST}"
/usr/bin/sa-learn --spam -f "${SPAM_LIST}"
# Saving the spam into a different location.
log "Saving the spam into a different location"
@ -88,7 +88,7 @@ learn_ham()
# Invoking sa-learn.
log "Invoking sa-learn"
/usr/bin/sa-learn -f "${HAM_LIST}"
/usr/bin/sa-learn --ham -f "${HAM_LIST}"
# Saving the ham.
log "Saving the ham into a different location"