> As the title says, I'm looking to clear out all user data/tokens. Mostly 
> it's because I want to retrain under 1 user (globaluser), and do it 
> correctly this time. I tried running "dspam_clean -s 0 username" under 
> the impression that the right thing to do, but there's no indication if 
> this worked or didn't work. Is that the correct way to do it?
>
With libhash_drv driver you can not use the dspam_clean utility. You need to 
use cssclean. Be aware that the cssclean utility has issues.


> Also, will 
> this clear out dspam_stats automatically (since that's one way I've been 
> keeping track of how much I've trained).
> 
As far as I remember the statistical data is not inside the css file so you 
need to look into the DSPAM home directory and clean up the data there manually.
In the daily cron job for DSPAM I wrote for Gentoo, I used this here to 
clean/purge old tokens in the CSS file and old signatures on the DSPAM home 
directory:
---
#
# Function to clean DSPAM Hash data
#
clean_hash_drv() {
        #
        # Hash
        #
        if [ -d "${DSPAM_HOMEDIR}/data" ]
        then
                find ${DSPAM_HOMEDIR}/data/ -maxdepth 4 -mindepth 1 -type f 
-name "*.css" | while read name
                do
                        /usr/bin/cssclean "${name}" 1>/dev/null 2>&1
                done
                find ${DSPAM_HOMEDIR}/data/ -maxdepth 4 -mindepth 1 -type d 
-name "*.sig" | while read name
                do
                        find "${name}" -maxdepth 1 -mindepth 1 -type f -mtime 
+${SIGNATURE_AGE} -name "*.sig" -exec /bin/rm "{}" ";"
                done
                return 0
        else
                return 1
        fi
}
---

This is just a small part of the script. Let me know if you need/want the full 
one (it is not specific to CSS cleaning. It does handle all the other storage 
engines as well).



> Thanks!
> 
> -Chris
>
// Steve
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

!DSPAM:1011,4919e579150921658918308!


Reply via email to