ze-filter  (ze-filter-0.8.0-develop-180218)
ze-livehistory.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_LIVEHISTORY_H
25 
26 #define LH_WORKTIME 0
27 #define LH_BADRCPT 1
28 #define LH_SPAMTRAP 2
29 #define LH_EMPTYCONN 3
30 #define LH_EMPTYMSGS 4
31 #define LH_BADMX 5
32 #define LH_LONGCONN 6
33 #define LH_HI_SCORE 7
34 #define LH_BAD_RESOLVE 8
35 
36 #define LH_MAX 9
37 
38 void livehistory_reset ();
40 
41 int livehistory_check_host (char *, time_t, int);
42 int livehistory_add_entry(char *, time_t, int, int);
43 
44 void livehistory_log_table(int, bool);
45 
46 
47 #define __ZE_LIVEHISTORY_H
48 #endif
49 
50 
void livehistory_log_table(int, bool)
void livehistory_reset()
bool livehistory_clean_table()
int livehistory_check_host(char *, time_t, int)
int livehistory_add_entry(char *, time_t, int, int)