Hi,

I've  just read about bayesian analysis from
http://wiki.apache.org/james/Bayesian_Analysis. But I've lots of doubt. 

First, I don't get what they mean with token frequencies or corpus. 

Second, after understanding little bit about Bayesian from that sit, I tried
to  in configure Bayesian analysis mailet, but it doesn't seem to work well.
Here's how I configured:

   <!-- "not spam" bayesian analysis feeder. -->
    
        <mailet match="recipientis=gr...@localhost"
class="BayesianAnalysisFeeder">
            <repositoryPath> db://maildb </repositoryPath>
            <feedType>ham</feedType>
            <maxSize>200000</maxSize>
         </mailet>
     
     
         <!-- "spam" bayesian analysis feeder. -->
       
         <mailet match="recipientis=...@localhost"
class="BayesianAnalysisFeeder">
            <repositoryPath> db://maildb </repositoryPath>
            <feedType>spam</feedType>
            <maxSize>200000</maxSize>
         </mailet>

 <mailet match="All" class="BayesianAnalysis" onMailetException="ignore">
            <repositoryPath>db://maildb</repositoryPath>
        <maxSize>200000</maxSize>
            <headerName>X-MessageIsSpamProbability</headerName>
            <ignoreLocalSender>false</ignoreLocalSender>
         </mailet>

         <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability
> 0.01" class="SetMailAttribute" onMatchException="noMatch">
            <isSpam>true</isSpam>
         </mailet>

         <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability
> 0.01" class="SetMimeHeader" onMatchException="noMatch">
            <name>X-MessageIsSpam</name>
            <value>true</value>
         </mailet>

         <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability
> 0.01" class="ToProcessor" onMatchException="noMatch">
            <processor> spam </processor>
            <notice>Spam not accepted</notice>
         </mailet>
        
         <!-- Send remaining mails to the transport processor for either
local or remote delivery -->
         <mailet match="All" class="ToProcessor">
            <processor> transport </processor>
         </mailet>
      </processor>

I just passed on simple text message, to check whether it may go or not, but
unfortunately I can't see anything in spam folder in James. I passed
different messages to red and green. What's wrong I'm doing in above. Thanks
in advance.

-- 
View this message in context: 
http://www.nabble.com/About-Bayesian-Analysis-tp26075410p26075410.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to