ze-filter
(ze-filter-0.8.0-develop-180218)
|
#include <ze-sys.h>
#include <ze-filter.h>
#include <ze-filter-data.h>
#include <ze-callbacklogs.h>
#include <ze-spool.h>
Go to the source code of this file.
Macros | |
#define | ADDROKTOANSWER(x) ((strlen(STRNULL(x)) != 0) && (strcmp(NULLSENDER,x) != 0)) |
#define | UNDEF_TAG "[SUSPECT]" |
#define | ZE_SERIES_FNAME ZE_WORKDIR "/ze-series.txt" |
#define | GLOBAL_CLASS(s) ((s) >= 4 ? "FORT": ((s) > 1 ? "FAIBLE" : "HAM")) |
#define | BAYES_CLASS(s) ((s) >= BSCORE_HI ? "SPAM": ((s) > BSCORE_LO ? "UNSURE" : "HAM")) |
#define | SPAM_CLASS(s) ((s) >= BSCORE_HI ? "SPAM" : (((s) >= BSCORE_MI ? "LO" : ((s) > 0.25 ? "UNSURE" : "HAM")))) |
Functions | |
bool | check_address_ok2warn (char *p) |
sfsistat | do_notify (SMFICTX *ctx, attachment_T *ahead, char *answer, char *why, char *tag) |
void | read_error_msg (char *buf, int sz, attachment_T *ahead, char *answer, char *from, char *why, char *tag, CTXPRIV_T *priv) |
void | log_msg_context (SMFICTX *ctx, char *why) |
bool | add_tag2subject (SMFICTX *ctx, char *tag) |
bool | open_scores4stats_file () |
bool | reopen_scores4stats_file () |
bool | dump_msg_scores4stats (SMFICTX *ctx) |
#define ADDROKTOANSWER | ( | x | ) | ((strlen(STRNULL(x)) != 0) && (strcmp(NULLSENDER,x) != 0)) |
Definition at line 36 of file ze-callbacklogs.c.
Definition at line 759 of file ze-callbacklogs.c.
#define GLOBAL_CLASS | ( | s | ) | ((s) >= 4 ? "FORT": ((s) > 1 ? "FAIBLE" : "HAM")) |
Definition at line 757 of file ze-callbacklogs.c.
#define SPAM_CLASS | ( | s | ) | ((s) >= BSCORE_HI ? "SPAM" : (((s) >= BSCORE_MI ? "LO" : ((s) > 0.25 ? "UNSURE" : "HAM")))) |
Definition at line 761 of file ze-callbacklogs.c.
#define UNDEF_TAG "[SUSPECT]" |
Definition at line 660 of file ze-callbacklogs.c.
#define ZE_SERIES_FNAME ZE_WORKDIR "/ze-series.txt" |
Definition at line 707 of file ze-callbacklogs.c.
bool check_address_ok2warn | ( | char * | p | ) |
Definition at line 39 of file ze-callbacklogs.c.