Re: debugging BlameJason mailtrainer.crm

Thomas Spahni <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
On Mon, 18 Aug 2008, Thomas Spahni wrote:

Hi

Quoting myself:

> ...and lines 300 / 311 have been amended to:
> 
> alter (:goodwildcard:) /'*'/
> 
> and
> 
> alter (:spamwildcard:) /'*'/

This is nonsense. Undid this 'fix' but added single quotes where find is 
syscalled.

> No errors any more, but (sigh) it doesn't learn. Number of messages learnt
> count up (one by one) but 'Total buckets in use' remains zero and I don't
> see the familiar message 'LEARNED AND CACHED SPAM/GOOD' but instead:

This is from the verbose_log:

<snip>
directory scan for 'reaver_cache/known_spam/20080818_151209_235152_F47E3D2D' --> reaver_cache/known_spam/20080818_151209_235152_F47E3D2D

directory scan for 'reaver_cache/empty/*' --> 

 Full set of files, after complete-pathing: 

 
Running all files 
DEBUG: stl ='reaver_cache/known_spam/20080818_151209_235152_F47E3D2D
'
DEBUG: spamfiles = 'reaver_cache/known_spam/20080818_151209_235152_F47E3D2D
'
DEBUG: gtl =''
DEBUG: goodfiles = ''
DEBUG: spam = 'reaver_cache/known_spam/20080818_151209_235152_F47E3D2D'
DEBUG: good = 'reaver_cache/empty/*'
DEBUG: spamdir = 'reaver_cache/known_spam/'
DEBUG: gooddir = 'reaver_cache/empty/'
 
Spam file reaver_cache/known_spam/reaver_cache/known_spam/20080818_151209_235152_F47E3D2D 
 COULDN'T READ THE SPAM FILE 'reaver_cache/known_spam/reaver_cache/known_spam/20080818_151209_235152_F47E3D2D'
 ER (  0.00) train & refute 
 
 Finished 1 passes.  
'
</snip>

That's why. Path gets messed up around line 659 in mailtrainer.crm
when it does:

     input [:*:spamdir::*:filename: 0 :*:decision_length:]

because :*:filename: already contains the complete path.


Any suggestions how to fix this without breaking other things?

Thomas Spahni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.