13
|
1 /*
|
|
2
|
|
3 Copyright (c) 2007 Carl Byington - 510 Software Group, released under
|
|
4 the GPL version 3 or any later version at your choice available at
|
|
5 http://www.gnu.org/licenses/gpl-3.0.txt
|
|
6
|
|
7 */
|
2
|
8 #ifndef smarchive_include
|
|
9 #define smarchive_include
|
0
|
10
|
|
11 #include "context.h"
|
|
12
|
|
13 extern int debug_syslog;
|
|
14
|
|
15 ////////////////////////////////////////////////
|
|
16 // mail filter private data, held for us by sendmail
|
|
17 //
|
|
18 struct mlfiPriv
|
|
19 {
|
|
20 // connection specific data
|
|
21 CONFIG *pc; // global filtering configuration
|
|
22 // message specific data
|
8
|
23 char *mailaddr; // envelope from value
|
|
24 char *queueid; // sendmail queue id
|
|
25 string_set targets; // targets to add at eom, strings are owned by the config
|
13
|
26 string_set removal; // targets to remove at eom, strings are owned here
|
0
|
27 mlfiPriv();
|
|
28 ~mlfiPriv();
|
|
29 void reset(bool final = false); // for a new message
|
|
30 };
|
|
31
|
|
32 void my_syslog(mlfiPriv *priv, char *text);
|
|
33 void my_syslog(char *text);
|
|
34
|
|
35 #endif
|