ze-filter  (ze-filter-0.8.0-develop-180218)
ze-chkcontent.c File Reference
#include <ze-sys.h>
#include "ze-filter.h"

Go to the source code of this file.

Macros

#define JDEBUG   0
 
#define LOG_LEVEL   10
 
#define H0_LOG_LEVEL   12
 
#define _FFR_MSG_ENTROPY   0
 
#define ENTROPY_BUF_SIZE   16000
 
#define URLBL_SCORE()   (MAX(urlbl_score, data->scores.urlbl))
 
#define REGEX_SCORE()   (MAX(MAX(clean_score, raw_score), data->scores.body))
 
#define CURRENT_SCORE()   (URLBL_SCORE() + REGEX_SCORE())
 
#define DCSET   256
 

Functions

int check_rfc2822_headers_count (char *, header_T *)
 
int check_rfc2822_headers_syntax (char *, header_T *)
 
int scan_body_contents (char *id, char *ip, char *fname, size_t maxsize, spamchk_T *data, msg_flags_T *flags, msg_scores_T *scores)
 

Macro Definition Documentation

◆ _FFR_MSG_ENTROPY

#define _FFR_MSG_ENTROPY   0

Definition at line 36 of file ze-chkcontent.c.

◆ CURRENT_SCORE

#define CURRENT_SCORE ( )    (URLBL_SCORE() + REGEX_SCORE())

Definition at line 73 of file ze-chkcontent.c.

◆ DCSET

#define DCSET   256

Definition at line 1752 of file ze-chkcontent.c.

◆ ENTROPY_BUF_SIZE

#define ENTROPY_BUF_SIZE   16000

Definition at line 41 of file ze-chkcontent.c.

◆ H0_LOG_LEVEL

#define H0_LOG_LEVEL   12

Definition at line 33 of file ze-chkcontent.c.

◆ JDEBUG

#define JDEBUG   0

Definition at line 30 of file ze-chkcontent.c.

◆ LOG_LEVEL

#define LOG_LEVEL   10

Definition at line 32 of file ze-chkcontent.c.

◆ REGEX_SCORE

#define REGEX_SCORE ( )    (MAX(MAX(clean_score, raw_score), data->scores.body))

Definition at line 68 of file ze-chkcontent.c.

◆ URLBL_SCORE

#define URLBL_SCORE ( )    (MAX(urlbl_score, data->scores.urlbl))

Definition at line 67 of file ze-chkcontent.c.

Function Documentation

◆ check_rfc2822_headers_count()

int check_rfc2822_headers_count ( char *  id,
header_T head 
)

Definition at line 1073 of file ze-chkcontent.c.

◆ check_rfc2822_headers_syntax()

int check_rfc2822_headers_syntax ( char *  id,
header_T head 
)

Definition at line 1293 of file ze-chkcontent.c.

◆ scan_body_contents()

int scan_body_contents ( char *  id,
char *  ip,
char *  fname,
size_t  maxsize,
spamchk_T data,
msg_flags_T flags,
msg_scores_T scores 
)

Definition at line 583 of file ze-chkcontent.c.