ze-filter  (ze-filter-0.8.0-develop-180218)
ze-history.h File Reference

Go to the source code of this file.

Macros

#define H_SUMMARY   0
 
#define H_EMPTY   1
 
#define H_REJ_EMPTY   2
 
#define H_BADRCPT   3
 
#define H_REJ_BADRCPT   4
 
#define H_REJ_OPEN   5
 
#define H_THROTTLE   6
 
#define H_REJ_THROTTLE   7
 
#define H_RESOLVE   8
 
#define H_REJ_RESOLVE   9
 
#define H_REJ_REGEX   10
 
#define H_XFILES   11
 
#define H_SPAMTRAP   12
 
#define H_REJ_BADMX   13
 
#define H_REJ_GREY   14
 
#define __ZE_HISTORY_H
 

Typedefs

typedef struct History_T History_T
 
typedef struct HistRaw_T HistRaw_T
 
typedef struct HistRes_T HistRes_T
 

Functions

bool raw_history_open (bool)
 
void raw_history_close ()
 
bool raw_history_add_entry (SMFICTX *)
 
bool res_history_update (History_T *, char *, time_t, time_t, bool)
 
void res_history_print (History_T *, char *, char *, bool, bool)
 
void res_history_summary (History_T *, char *, time_t, time_t, bool, bool, int, int)
 
bool load_live_history (History_T *, time_t, time_t)
 

Macro Definition Documentation

◆ __ZE_HISTORY_H

#define __ZE_HISTORY_H

Definition at line 62 of file ze-history.h.

◆ H_BADRCPT

#define H_BADRCPT   3

Definition at line 34 of file ze-history.h.

◆ H_EMPTY

#define H_EMPTY   1

Definition at line 32 of file ze-history.h.

◆ H_REJ_BADMX

#define H_REJ_BADMX   13

Definition at line 44 of file ze-history.h.

◆ H_REJ_BADRCPT

#define H_REJ_BADRCPT   4

Definition at line 35 of file ze-history.h.

◆ H_REJ_EMPTY

#define H_REJ_EMPTY   2

Definition at line 33 of file ze-history.h.

◆ H_REJ_GREY

#define H_REJ_GREY   14

Definition at line 45 of file ze-history.h.

◆ H_REJ_OPEN

#define H_REJ_OPEN   5

Definition at line 36 of file ze-history.h.

◆ H_REJ_REGEX

#define H_REJ_REGEX   10

Definition at line 41 of file ze-history.h.

◆ H_REJ_RESOLVE

#define H_REJ_RESOLVE   9

Definition at line 40 of file ze-history.h.

◆ H_REJ_THROTTLE

#define H_REJ_THROTTLE   7

Definition at line 38 of file ze-history.h.

◆ H_RESOLVE

#define H_RESOLVE   8

Definition at line 39 of file ze-history.h.

◆ H_SPAMTRAP

#define H_SPAMTRAP   12

Definition at line 43 of file ze-history.h.

◆ H_SUMMARY

#define H_SUMMARY   0

Definition at line 31 of file ze-history.h.

◆ H_THROTTLE

#define H_THROTTLE   6

Definition at line 37 of file ze-history.h.

◆ H_XFILES

#define H_XFILES   11

Definition at line 42 of file ze-history.h.

Typedef Documentation

◆ History_T

typedef struct History_T History_T

Definition at line 26 of file ze-history.h.

◆ HistRaw_T

typedef struct HistRaw_T HistRaw_T

Definition at line 27 of file ze-history.h.

◆ HistRes_T

typedef struct HistRes_T HistRes_T

Definition at line 28 of file ze-history.h.

Function Documentation

◆ load_live_history()

bool load_live_history ( History_T ,
time_t  ,
time_t   
)

Definition at line 1184 of file ze-history.c.

◆ raw_history_add_entry()

bool raw_history_add_entry ( SMFICTX *  )

Definition at line 309 of file ze-history.c.

◆ raw_history_close()

void raw_history_close ( )

Definition at line 296 of file ze-history.c.

◆ raw_history_open()

bool raw_history_open ( bool  )

Definition at line 227 of file ze-history.c.

◆ res_history_print()

void res_history_print ( History_T ,
char *  ,
char *  ,
bool  ,
bool   
)

◆ res_history_summary()

void res_history_summary ( History_T ,
char *  ,
time_t  ,
time_t  ,
bool  ,
bool  ,
int  ,
int   
)

Definition at line 1044 of file ze-history.c.

◆ res_history_update()

bool res_history_update ( History_T ,
char *  ,
time_t  ,
time_t  ,
bool   
)

Definition at line 631 of file ze-history.c.