ze-filter  (ze-filter-0.8.0-develop-180218)
ze-libjc.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_LIBJC_H
26 
27 #include "version.h"
28 #include "defs.h"
29 
30 #include "ze-sys.h"
31 
32 #include "macros.h"
33 
34 #include "zeKStats.h"
35 #include "ze-logit.h"
36 #include "ze-name2id.h"
37 #include "ze-decode.h"
38 #include "ze-base64.h"
39 #include "ze-qp.h"
40 #include "ze-rfc2822.h"
41 #include "ze-demime.h"
42 #include "ze-convert-8to7.h"
43 #include "ze-html.h"
44 #include "ze-smtp-divers.h"
45 #include "ze-morpho.h"
46 #include "ze-ipv4.h"
47 #include "ze-ipv6.h"
48 #include "ze-ip.h"
49 #include "ze-txtlog.h"
50 #include "ze-server.h"
51 #include "ze-client.h"
52 #include "ze-avclient.h"
53 #include "ze-dns.h"
54 #include "ze-dns-parse.h"
55 #include "ze-ipc.h"
56 
57 #include <libze.h>
58 
59 #include "ze-databases.h"
60 
61 #include "ze-resolve-cache.h"
62 #include "ze-uudecode.h"
63 #include "ze-unattach.h"
64 #include "ze-load.h"
65 
66 #include "ze-mbox.h"
67 #include "ze-msg-score.h"
68 #include "ze-bestof-n.h"
69 
70 /* ****************************************************************************
71  * *
72  * *
73  **************************************************************************** */
74 
75 #define SIGNATURE 0x70071234
76 
77 #define SZ_IP 32
78 #define SZ_NAME 64
79 
80 #define HOSTNAMECPY(dst,src,sz) \
81  { \
82  size_t n; \
83  n = strlen(src); \
84  \
85  strlcpy(dst, "...", sz); \
86  if (n >= sz - 3) \
87  strlcpy(dst + 3, n - sz + 4, sz - 3); \
88  else \
89  strlcpy(dst, src, sz); \
90  } while (0)
91 
92 
93 
94 
95 #define __ZE_LIBJC_H
96 #endif