ze-filter
(ze-filter-0.8.0-develop-180218)
|
Classes | |
struct | scores_scale_T |
struct | test_score_T |
struct | msg_scores_T |
Macros | |
#define | BSCORE_LO 0.25 |
#define | BSCORE_MI 0.50 |
#define | BSCORE_HI 0.65 |
#define | MSG_ACTION_UNDEF -1 |
#define | MSG_ACTION_OK 0 |
#define | MSG_ACTION_REJECT 1 |
#define | MSG_ACTION_DISCARD 2 |
#define | MSG_ACTION_QUARANTINE 3 |
#define | MSG_ACTION_HEADER_HAM 4 |
#define | MSG_ACTION_HEADER_SPAM_LO 5 |
#define | MSG_ACTION_HEADER_SPAM_HI 6 |
#define | MSG_ACTION_HEADER_NEUTRAL 7 |
#define | MSG_EVAL_FUNCTION 11 |
#define | DEFAULT_MSG_EVAL "VECTOR; KBAYES=1.0; KURLBL=0.040; KREGEX=0.020; KORACLE=0.083" |
#define | DEFAULT_MSG_SCALE "SSCORE1=7.; SSCORE0=0.; SBAYES=1.0; SURLBL=0.2; SREGEX=0.2; SORACLE=1." |
Typedefs | |
typedef struct scores_scale_T | scores_scale_T |
typedef struct test_score_T | test_score_T |
typedef struct msg_scores_T | msg_scores_T |
Functions | |
bool | configure_msg_eval_function (char *val) |
bool | configure_msg_score_scales (char *val) |
bool | display_msg_eval () |
double | compute_msg_score (msg_scores_T *scores) |
bool | create_msg_score_header (char *buf, size_t size, char *id, char *hostname, msg_scores_T *scores) |
bool | fill_msg_scale (scores_scale_T *scale) |
bool | register_msg_action (int which, char *val) |
bool | evaluate_msg_action (int action, msg_scores_T *scp, double score, char *str) |
#define BSCORE_HI 0.65 |
Definition at line 35 of file ze-msg-score.h.
#define BSCORE_LO 0.25 |
Definition at line 33 of file ze-msg-score.h.
#define BSCORE_MI 0.50 |
Definition at line 34 of file ze-msg-score.h.
#define DEFAULT_MSG_EVAL "VECTOR; KBAYES=1.0; KURLBL=0.040; KREGEX=0.020; KORACLE=0.083" |
Definition at line 122 of file ze-msg-score.h.
#define DEFAULT_MSG_SCALE "SSCORE1=7.; SSCORE0=0.; SBAYES=1.0; SURLBL=0.2; SREGEX=0.2; SORACLE=1." |
Definition at line 126 of file ze-msg-score.h.
#define MSG_ACTION_DISCARD 2 |
Definition at line 43 of file ze-msg-score.h.
#define MSG_ACTION_HEADER_HAM 4 |
Definition at line 47 of file ze-msg-score.h.
#define MSG_ACTION_HEADER_NEUTRAL 7 |
Definition at line 50 of file ze-msg-score.h.
#define MSG_ACTION_HEADER_SPAM_HI 6 |
Definition at line 49 of file ze-msg-score.h.
#define MSG_ACTION_HEADER_SPAM_LO 5 |
Definition at line 48 of file ze-msg-score.h.
#define MSG_ACTION_OK 0 |
Definition at line 40 of file ze-msg-score.h.
#define MSG_ACTION_QUARANTINE 3 |
Definition at line 45 of file ze-msg-score.h.
#define MSG_ACTION_REJECT 1 |
Definition at line 42 of file ze-msg-score.h.
#define MSG_ACTION_UNDEF -1 |
Definition at line 39 of file ze-msg-score.h.
#define MSG_EVAL_FUNCTION 11 |
Definition at line 52 of file ze-msg-score.h.
typedef struct msg_scores_T msg_scores_T |
typedef struct scores_scale_T scores_scale_T |
typedef struct test_score_T test_score_T |
double compute_msg_score | ( | msg_scores_T * | scores | ) |
Definition at line 634 of file ze-msg-score.c.
bool configure_msg_eval_function | ( | char * | val | ) |
Definition at line 450 of file ze-msg-score.c.
bool configure_msg_score_scales | ( | char * | val | ) |
Definition at line 511 of file ze-msg-score.c.
bool create_msg_score_header | ( | char * | buf, |
size_t | size, | ||
char * | id, | ||
char * | hostname, | ||
msg_scores_T * | scores | ||
) |
Definition at line 737 of file ze-msg-score.c.
bool display_msg_eval | ( | ) |
Definition at line 555 of file ze-msg-score.c.
bool evaluate_msg_action | ( | int | action, |
msg_scores_T * | scp, | ||
double | score, | ||
char * | str | ||
) |
Definition at line 1006 of file ze-msg-score.c.
bool fill_msg_scale | ( | scores_scale_T * | scale | ) |
Definition at line 810 of file ze-msg-score.c.
bool register_msg_action | ( | int | which, |
char * | val | ||
) |
Definition at line 968 of file ze-msg-score.c.