ze-filter  (ze-filter-0.8.0-develop-180218)
ze-spool.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_SPOOL_H
26 
27 #define WHY_UNKNOWN 0
28 #define WHY_XFILE 1
29 #define WHY_VIRUS 2
30 #define WHY_POLICY 3
31 #define WHY_SPAM 4
32 #define WHY_ARCHIVE 5
33 #define WHY_QUARANTINE 6
34 
35 
36 #define SUFFIX_UNKNOWN ".unknown"
37 #define SUFFIX_XFILE ".xfile"
38 #define SUFFIX_VIRUS ".virus"
39 #define SUFFIX_POLICY ".policy"
40 #define SUFFIX_SPAM ".spam"
41 #define SUFFIX_ARCHIVE ".archive"
42 #define SUFFIX_QUARANTINE ".quarantine"
43 
45 bool spool_file_write(CTXPRIV_T *, char *, size_t);
48 
50 
51 /*
52 ** Spool file
53 */
54 typedef struct MSG_SPOOL_T MSG_SPOOL_T;
55 
57 {
58  char *fname; /* spool file name */
59  char *fsuffix;
60  int fd;
61  bool fp_open; /* True if spool open */
62  bool save_msg; /* shall message be quarantined */
63 };
64 
65 
66 #define __ZE_SPOOL_H
67 #endif
bool spool_file_create(CTXPRIV_T *)
Definition: ze-spool.c:50
bool spool_file_close(CTXPRIV_T *)
Definition: ze-spool.c:222
bool save_msg
Definition: ze-spool.h:62
bool spool_file_forget(CTXPRIV_T *)
Definition: ze-spool.c:245
bool spool_file_write(CTXPRIV_T *, char *, size_t)
Definition: ze-spool.c:201
bool spool_file_is_open(CTXPRIV_T *)
Definition: ze-spool.c:291
char * fsuffix
Definition: ze-spool.h:59
bool fp_open
Definition: ze-spool.h:61
char * fname
Definition: ze-spool.h:58