25 #ifndef __ZE_MSG_SCORE_H 33 #define BSCORE_LO 0.25 34 #define BSCORE_MI 0.50 35 #define BSCORE_HI 0.65 39 #define MSG_ACTION_UNDEF -1 40 #define MSG_ACTION_OK 0 42 #define MSG_ACTION_REJECT 1 43 #define MSG_ACTION_DISCARD 2 45 #define MSG_ACTION_QUARANTINE 3 47 #define MSG_ACTION_HEADER_HAM 4 48 #define MSG_ACTION_HEADER_SPAM_LO 5 49 #define MSG_ACTION_HEADER_SPAM_HI 6 50 #define MSG_ACTION_HEADER_NEUTRAL 7 52 #define MSG_EVAL_FUNCTION 11 122 #define DEFAULT_MSG_EVAL "VECTOR; KBAYES=1.0; KURLBL=0.040; KREGEX=0.020; KORACLE=0.083" 124 #define DEFAULT_MSG_EVAL "LOGIT; KBAYES=1.0; KURLBL=0.040; KREGEX=0.020; KORACLE=0.083" 126 #define DEFAULT_MSG_SCALE "SSCORE1=7.; SSCORE0=0.; SBAYES=1.0; SURLBL=0.2; SREGEX=0.2; SORACLE=1." 136 double score,
char *str);
140 # define __ZE_MSG_SCORE_H 1
bool register_msg_action(int which, char *val)
bool configure_msg_eval_function(char *val)
struct scores_scale_T scores_scale_T
bool evaluate_msg_action(int action, msg_scores_T *scp, double score, char *str)
bool fill_msg_scale(scores_scale_T *scale)
bool create_msg_score_header(char *buf, size_t size, char *id, char *hostname, msg_scores_T *scores)
bool configure_msg_score_scales(char *val)
struct msg_scores_T msg_scores_T
double compute_msg_score(msg_scores_T *scores)
struct test_score_T test_score_T