ze-filter  (ze-filter-0.8.0-develop-180218)
Filter : Actions after filtering

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)
 

Detailed Description

Macro Definition Documentation

◆ BSCORE_HI

#define BSCORE_HI   0.65

Definition at line 35 of file ze-msg-score.h.

◆ BSCORE_LO

#define BSCORE_LO   0.25

Definition at line 33 of file ze-msg-score.h.

◆ BSCORE_MI

#define BSCORE_MI   0.50

Definition at line 34 of file ze-msg-score.h.

◆ DEFAULT_MSG_EVAL

#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.

◆ DEFAULT_MSG_SCALE

#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.

◆ MSG_ACTION_DISCARD

#define MSG_ACTION_DISCARD   2

Definition at line 43 of file ze-msg-score.h.

◆ MSG_ACTION_HEADER_HAM

#define MSG_ACTION_HEADER_HAM   4

Definition at line 47 of file ze-msg-score.h.

◆ MSG_ACTION_HEADER_NEUTRAL

#define MSG_ACTION_HEADER_NEUTRAL   7

Definition at line 50 of file ze-msg-score.h.

◆ MSG_ACTION_HEADER_SPAM_HI

#define MSG_ACTION_HEADER_SPAM_HI   6

Definition at line 49 of file ze-msg-score.h.

◆ MSG_ACTION_HEADER_SPAM_LO

#define MSG_ACTION_HEADER_SPAM_LO   5

Definition at line 48 of file ze-msg-score.h.

◆ MSG_ACTION_OK

#define MSG_ACTION_OK   0

Definition at line 40 of file ze-msg-score.h.

◆ MSG_ACTION_QUARANTINE

#define MSG_ACTION_QUARANTINE   3

Definition at line 45 of file ze-msg-score.h.

◆ MSG_ACTION_REJECT

#define MSG_ACTION_REJECT   1

Definition at line 42 of file ze-msg-score.h.

◆ MSG_ACTION_UNDEF

#define MSG_ACTION_UNDEF   -1

Definition at line 39 of file ze-msg-score.h.

◆ MSG_EVAL_FUNCTION

#define MSG_EVAL_FUNCTION   11

Definition at line 52 of file ze-msg-score.h.

Typedef Documentation

◆ msg_scores_T

typedef struct msg_scores_T msg_scores_T

◆ scores_scale_T

◆ test_score_T

typedef struct test_score_T test_score_T

Function Documentation

◆ compute_msg_score()

double compute_msg_score ( msg_scores_T scores)

Definition at line 634 of file ze-msg-score.c.

◆ configure_msg_eval_function()

bool configure_msg_eval_function ( char *  val)

Definition at line 450 of file ze-msg-score.c.

◆ configure_msg_score_scales()

bool configure_msg_score_scales ( char *  val)

Definition at line 511 of file ze-msg-score.c.

◆ create_msg_score_header()

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.

◆ display_msg_eval()

bool display_msg_eval ( )

Definition at line 555 of file ze-msg-score.c.

◆ evaluate_msg_action()

bool evaluate_msg_action ( int  action,
msg_scores_T scp,
double  score,
char *  str 
)

Definition at line 1006 of file ze-msg-score.c.

◆ fill_msg_scale()

bool fill_msg_scale ( scores_scale_T scale)

Definition at line 810 of file ze-msg-score.c.

◆ register_msg_action()

bool register_msg_action ( int  which,
char *  val 
)

Definition at line 968 of file ze-msg-score.c.