ze-filter  (ze-filter-0.8.0-develop-180218)
ze-history.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : janvier 2002
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 #ifndef __ZE_HISTORY_H
25 
26 typedef struct History_T History_T;
27 typedef struct HistRaw_T HistRaw_T;
28 typedef struct HistRes_T HistRes_T;
29 
30 
31 #define H_SUMMARY 0
32 #define H_EMPTY 1
33 #define H_REJ_EMPTY 2
34 #define H_BADRCPT 3
35 #define H_REJ_BADRCPT 4
36 #define H_REJ_OPEN 5
37 #define H_THROTTLE 6
38 #define H_REJ_THROTTLE 7
39 #define H_RESOLVE 8
40 #define H_REJ_RESOLVE 9
41 #define H_REJ_REGEX 10
42 #define H_XFILES 11
43 #define H_SPAMTRAP 12
44 #define H_REJ_BADMX 13
45 #define H_REJ_GREY 14
46 
47 
48 bool raw_history_open (bool);
49 
50 void raw_history_close ();
51 
52 bool raw_history_add_entry (SMFICTX *);
53 
54 bool res_history_update (History_T *, char *, time_t, time_t, bool);
55 
56 void res_history_print (History_T *, char *, char *, bool, bool);
57 
58 void res_history_summary (History_T *, char *, time_t, time_t, bool, bool, int, int);
59 
60 bool load_live_history (History_T *, time_t, time_t);
61 
62 #define __ZE_HISTORY_H
63 #endif
void res_history_summary(History_T *, char *, time_t, time_t, bool, bool, int, int)
Definition: ze-history.c:1044
void raw_history_close()
Definition: ze-history.c:296
bool raw_history_add_entry(SMFICTX *)
Definition: ze-history.c:309
bool res_history_update(History_T *, char *, time_t, time_t, bool)
Definition: ze-history.c:631
bool load_live_history(History_T *, time_t, time_t)
Definition: ze-history.c:1184
bool raw_history_open(bool)
Definition: ze-history.c:227
void res_history_print(History_T *, char *, char *, bool, bool)