Small bugfixes

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

View file

@ -27,7 +27,7 @@ readonly LOGFILE="${HOME}/spam-ham-learn.log"
log()
{
printf "I: %s" "$*" >> "${LOGFILE}"
printf "I: %s\n" "$*" >> "${LOGFILE}"
}
learn_spam()
@ -43,7 +43,7 @@ learn_spam()
# Collecting the spam.
log "Collecting spam"
find "${SPAMDIR}/cur" "${SPAMDIR}/new" -type f "${findargs}" | while read -r msg; do
find "${SPAMDIR}/cur" "${SPAMDIR}/new" -type f ${findargs} | while read -r msg; do
log "Found ${msg}, adding it to the spam list (${SPAM_LIST})"
printf "%s\n" "${msg}" >> "${SPAM_LIST}"
done