https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7127

--- Comment #4 from Reindl Harald <[email protected]> ---
well, the size indeed seems to be fine and with /var/lib as read-onny namespace
that don't seem happen - yet reviewed "bayes_seen" and currently it semms to
not contain message parts

i build my bayse like below and without the rebuild option it's a find / xargs
combination of samples not older than 24 hours from the very beginning working
with SA

MAYBE the switch to "--no-sync" makes the difference because now the number of
nhm and nspam is equal to the number fo sample messages, previously all the
time a few hundret messages ham as well as spam where missing

OR the read-only namespace
(http://www.gossamer-threads.com/lists/spamassassin/users/190713?do=post_view_threaded)
due training can also be the difference 

combination of both seems to keep the bayes files 100% clean 

if [ "$1" == "rebuild" ]; then
  BAYES_TEMP="$SA_MILTER_HOME/training/.temp"
  mkdir "$BAYES_TEMP" 2> /dev/null > /dev/null
  /usr/bin/sa-learn --dbpath "$BAYES_TEMP/bayes" --clear
  MY_TIME=$(/usr/bin/date "+%d-%m-%Y %H:%M:%S")
  echo "$MY_TIME: Verarbeite SPAM Samples"
  nice -n 19 /usr/bin/sa-learn --dbpath "$BAYES_TEMP/bayes" --max-size=0
--no-sync --progress --spam "$SA_MILTER_HOME/training/spam/"
  MY_TIME=$(/usr/bin/date "+%d-%m-%Y %H:%M:%S")
  echo "$MY_TIME: Synchronisiere Journal"
  nice -n 19 /usr/bin/sa-learn --dbpath "$BAYES_TEMP/bayes" --sync
  echo ""
  MY_TIME=$(/usr/bin/date "+%d-%m-%Y %H:%M:%S")
  echo "$MY_TIME: Verarbeite HAM Samples"
  nice -n 19 /usr/bin/sa-learn --dbpath "$BAYES_TEMP/bayes" --max-size=0
--no-sync --progress --ham "$SA_MILTER_HOME/training/ham/"
  MY_TIME=$(/usr/bin/date "+%d-%m-%Y %H:%M:%S")
  echo "$MY_TIME: Synchronisiere Journal"
  nice -n 19 /usr/bin/sa-learn --dbpath "$BAYES_TEMP/bayes" --sync
  echo ""
  mv -f "$BAYES_TEMP/bayes_seen" "$SA_MILTER_HOME/.spamassassin/"
  mv -f "$BAYES_TEMP/bayes_toks" "$SA_MILTER_HOME/.spamassassin/"
  sync
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to