Hello Bryan, Wednesday, December 31, 2003, 11:14:25 PM, you wrote:
BH> Bryan Hoover wrote: >> > perl ./mass-check -c ./spamassassin -j 1 --loghits --mid --mbox ./corpus.ham/* >> > >ham.log >> > perl ./mass-check -c ./spamassassin -j 1 --loghits --mid --mbox ./corpus.spam/* >> > >spam.log >> > perl ./hit-frequencies -x -c /home/Owner/sa-masses/spamassassin >> >> The answer, as it appears in the hit-frequencies code, may be in the x >> parameter. BH> I've continued looking at the hit-frequencies code. I jumped to BH> conclusions on the above -- I see now that I was wrong -- sorry Robert, BH> if that sent you looking in the wrong direction. Thanks, but I was pretty sure that wasn't the problem area. BH> This problem has piqued my interest though. I wonder if directory BH> rights could be involved. I'm running as admimistrator on this Windows machine, with Unix/Cygwin under Windows, and the entire SA install is under my home directory, and mass-check has no problem reading the rules file, so it seems extremely unlikely that it's directory rights or any other permissions problem. BH> From the code, it does look like whether the BH> missing information gets output depends on whether the corresponding BH> rule is there -- the implication being, the stats are there from the BH> ham/spam log files, but hit-frequencies is not seeing the rules files. BH> This is speculation, intuition at this point though, as it's late, and BH> I'm still looking... I agree. I'm guessing at this point the problem is in > sub readscores { > my($cffile) = @_; > system ("$FindBin::Bin/parse-rules-for-masses -d \"$cffile\" -s $opt_s") and die; > require "./tmp/rules.pl"; > } rules.pl is effectively empty: > # dumped at Thu Jan 1 03:50:09 PST 2004 > %rules = (); > %scores = (); > 1; That tells me that either parse-rules-for-masses isn't finding the rules file, or is finding it and not reading it. Digging into parse-rules-for-masses, it uses > sub readrules { > foreach my $indir (@_) { > my @files = <$indir/[0-9]*.cf>; which tells me that mass-check is reading my user_prefs file, but parse-rules-for-masses wants these rules in a numeric *.cf file. I'll keep playing with those files. We'll figure it out sooner or later. Thanks for the help. Bob Menschel ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk