diff --git a/spam-ham-learn b/spam-ham-learn index d89a170..96b5b01 100755 --- a/spam-ham-learn +++ b/spam-ham-learn @@ -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