Small bugfixes
This commit is contained in:
parent
aa3385ccbb
commit
da125323b6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue