• Defaultaction should be used with bayesian filter, i think

    By Oliver Regelmann 2 decades ago

    Hello, I try to setup kSpam to do the following:

    use the bayesian filter,

    mark mails to handle with them with an agent in mail databases,

    copy but not deny them

    and don't copy good mails to mailgood.nsf



    KS_BAYESIAN_PREP and PREP_2 are both copying mails to mailgood.nsf if i read the documentation right. Since KS_DEFAULTACTION has no effect on the bayesian filter, i don't see a possible configuration to achieve the above but to use PREP_2 and delete mails from mailgood.nsf immediately after they're inserted.



    Am I missing something?

    • Re:

      By Tom Lyne 2 decades ago

      To do this you would have to set KS_BAYESIAN_PREP_2=1 and KS_BAYESIAN_MARK=1 in your notes.ini, and set an agent to delete any documents that are copied to mailgood.nsf.



      The KS_BAYESIAN_MARK variable will add an item to the email which holds the probability of the email being spam.



      Regards,

      Tom

      • Thanks, that's what i do now

        By Oliver Regelmann 2 decades ago

        But it would be great to mark the subject, too (configurable). I'll add that as request.

    • You need good emails

      By Declan Lynch 2 decades ago

      You need to keep copies of good emails so the filter can train itself on what is good and bad.



      If you have a LOT of emails going into the good database then you can set the ratio to say how many go in. My servers handle about 5000 emails a day and I have the ratio set to 1000 so I get 5 good emails every day in the mail good database.



      But I do agree, I would like to see an option that can 'mark' a spam mail detected by the baysian filter with the word SPAM in the subject and then send it on to the user and make a copy of the unaltered original.

      • By Oliver Regelmann 2 decades ago

        >You need to keep copies of good emails so the filter can train itself on what is good and bad.



        Sure, but I don't want to have a copy of every good mail we ever get in this db ;-)

        I'll try that tip with the ratio



        >But I do agree, I would like to see an option that can 'mark' a spam mail detected by the baysian filter with >the word SPAM in the subject and then send it on to the user and make a copy of the unaltered original.



        Ack, this would enable the user to use mail rules on those mails without changes to the mail rules design.

      • how to tell the ratio

        By Vincenzo Di Benedetto 2 decades ago

        how to tell the ratio of copied mail in mailgood.nsf???