#include <ze-sys.h>
#include <ze-filter.h>
#include <ze-oracle-scores.h>
Go to the source code of this file.
|
void | oracle_stats_update (int score) |
|
void | oracle_stats_get (double *gm, double *gs, long *gnb, double *tm, double *ts, long *tnb) |
|
char * | oracle_get_label (int type, int ind) |
|
double | oracle_get_podds (int type, int ind) |
|
bool | oracle_set_podds (int type, int ind, double value) |
|
double | oracle_get_nodds (int type, int ind) |
|
bool | oracle_set_nodds (int type, int ind, double value) |
|
double | oracle_get_score (int type, int ind) |
|
bool | oracle_set_score (int type, int ind, double value) |
|
long | oracle_get_count (int type, int ind) |
|
long | oracle_set_count (int type, int ind, long value) |
|
long | oracle_inc_count (int type, int ind) |
|
bool | oracle_dump_counters (int fd, bool verbose) |
|
bool | oracle_read_counters () |
|
bool | oracle_save_counters () |
|
bool | oracle_read_scores () |
|
bool | load_oracle_defs (char *cfdir, char *fname) |
|
void | dump_oracle_defs () |
|
bool | oracle_check_enabled (int type, int ind) |
|
int | oracle_compute_score (char *id, char *ip, spamchk_T *data) |
|
◆ KEYVALUE
#define KEYVALUE "^[a-z0-9_-]+=[^ \t]+" |
◆ MINCNT
◆ ORACLE_DATA_LOCK
#define ORACLE_DATA_LOCK |
( |
| ) |
MUTEX_LOCK(&ora_mutex) |
◆ ORACLE_DATA_UNLOCK
◆ oracle_get_nodds()
double oracle_get_nodds |
( |
int |
type, |
|
|
int |
ind |
|
) |
| |
◆ oracle_get_podds()
double oracle_get_podds |
( |
int |
type, |
|
|
int |
ind |
|
) |
| |
◆ oracle_set_nodds()
bool oracle_set_nodds |
( |
int |
type, |
|
|
int |
ind, |
|
|
double |
value |
|
) |
| |
◆ oracle_set_podds()
bool oracle_set_podds |
( |
int |
type, |
|
|
int |
ind, |
|
|
double |
value |
|
) |
| |