ze-filter  (ze-filter-0.8.0-develop-180218)
ze-dns-urlbl.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 
25 #ifndef __ZE_DNS_URLBL_H
26 
32 typedef struct
33 {
34  char line[256];
35 
36  char bl[64];
37 
38  char code[64];
39 
40  char onmatch[20];
41 
43 
44  double odds;
45  double score;
46 } urlbl_T;
47 
48 
49 bool init_urlbl_table();
50 
51 void dump_urlbl_table();
52 bool load_urlbl_table(char *cfdir, char *fname);
53 
54 uint32_t check_urlbl_table(char *id, char *name, urlbl_T *bl);
55 
56 bool check_dns_urlbl(char *name, char *bl, char *code,
57  size_t size, bool recurse);
58 
61 #define __ZE_DNS_URLBL_H
62 #endif
void dump_urlbl_table()
Definition: ze-dns-urlbl.c:396
bool check_dns_urlbl(char *name, char *bl, char *code, size_t size, bool recurse)
Definition: ze-dns-urlbl.c:43
double odds
Definition: ze-dns-urlbl.h:44
unsigned short uint16_t
Definition: ze-sys.h:485
uint16_t flags
Definition: ze-dns-urlbl.h:42
uint32_t check_urlbl_table(char *id, char *name, urlbl_T *bl)
Definition: ze-dns-urlbl.c:440
bool init_urlbl_table()
Definition: ze-dns-urlbl.c:374
double score
Definition: ze-dns-urlbl.h:45
long uint32_t
Definition: ze-sys.h:489
bool load_urlbl_table(char *cfdir, char *fname)
Definition: ze-dns-urlbl.c:347