Hello, Christoph Wilke wrote:
Hi, if auto_whitelist is anabled, and the sender has sent enough good stuff, to fulfill it, bayes_file() will set the spamicity result to REAL_HAM_TOKEN_PROBABILITY, which is 0.0001 per default. Would it be possible to let the result be 0 and an extra header like "SPAMINESS_HEADER_FIELD statistically whitelisted" to be added?
Yes. I have updated the nightly build, and it adds an extra header line if the message is statistically whitelisted: '$clapf_header_field: statistically whitelisted' Why do you want to have the spamicity set to 0.0?
I'm not pretty sure on how to implement this, if it's possible to hand a reasonable value (except a probability) back from bayes_file() or if the statistically whitelisted senders could be added into the database?
Well, they are already in the database. clapf extracts the whole From: header line, just as it is, and creates a hash value which is stored in the database. If you run spamdrop in debug mode (-D) then it prints out the occurences of the sender in the database. Best regards, Janos