2
|
1 #ifndef smarchive_include
|
|
2 #define smarchive_include
|
0
|
3
|
|
4 #include "context.h"
|
|
5
|
|
6 extern int debug_syslog;
|
|
7
|
|
8 ////////////////////////////////////////////////
|
|
9 // mail filter private data, held for us by sendmail
|
|
10 //
|
|
11 struct mlfiPriv
|
|
12 {
|
|
13 // connection specific data
|
|
14 CONFIG *pc; // global filtering configuration
|
|
15 // message specific data
|
|
16 char *mailaddr; // envelope from value
|
|
17 char *queueid; // sendmail queue id
|
|
18 bool processed_from; // looked at env_from address
|
|
19 mlfiPriv();
|
|
20 ~mlfiPriv();
|
|
21 void reset(bool final = false); // for a new message
|
|
22 };
|
|
23
|
|
24 void my_syslog(mlfiPriv *priv, char *text);
|
|
25 void my_syslog(char *text);
|
|
26
|
|
27 #endif
|