These are the right lines you should look at.

        unlink "$DBDir/rbtmp.hamHMM.bdb";
        unlink "$DBDir/rbtmp.spamHMM.bdb";
        unlink "$DBDir/rbtmp.hamHMM.totals.bdb";
        unlink "$DBDir/rbtmp.spamHMM.totals.bdb";
        if (   ! -e "$DBDir/rbtmp.hamHMM.bdb"
            && ! -e "$DBDir/rbtmp.spamHMM.bdb"
            && ! -e "$DBDir/rbtmp.hamHMM.totals.bdb"
            && ! -e "$DBDir/rbtmp.spamHMM.totals.bdb")
        {

If any of the conditions failes - DoHMM is disabled.


            $hamHMM  = ASSP::MarkovChain->new(longest => 
$main::HMMSequenceLength,
..
            $spamHMM = ASSP::MarkovChain->new(longest => 
$main::HMMSequenceLength,


If ASSP is unable to create the temporary HMM DB's - DoHMM is also 
disabled.

Thomas





Von:    Michael <[email protected]>
An:     assp-test <[email protected]>, 
Datum:  03.07.2012 23:25
Betreff:        [Assp-test] 12176: Building HMM database still disabled. 
Workaround?




Hello Thomas,

as I already wrote here 
(http://sourceforge.net/mailarchive/message.php?msg_id=29334568) 
building a HMM database still does not work on my machine since > 12145.
Although you wrote that there was no change, I tried to re-enabling 
that feature.
Therefore I had a look on assp.pl in order to find the responsible lines.

Although I have no deep knowledge about Perl, I found out that
this should be responsible lines for enabling rebuilding HMM database 
(linenumbers 52207-52210):

         $DoHMM = 0 unless $hamHMM && $spamHMM;
     } else {
         $DoHMM = 0;

After changing to

         $DoHMM = 1 unless $hamHMM && $spamHMM;
     } else {
         $DoHMM = 0;

and after restart I got:

"RebuildSpamDB will create a Hidden Markov Model!" but the HMM 
database is not filled.
It seems that there is one or more conditions in the code which 
prevents ASSP to do the HMM rebuild.
Could you please have a look on the code again? I do not know where to 
look else as 12145 still works
perfect without changes in the config.


Thank you and best regards
Michael



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to