Mercurial > sm-archive
annotate src/sm-archive.h @ 25:a2d60f43590b stable-1-0-9
changes for rhel7 systemd and /var/run on tmpfs
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 06 Feb 2017 11:34:51 -0800 |
parents | b24369330483 |
children |
rev | line source |
---|---|
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 extern int debug_syslog; | |
12 | |
13 //////////////////////////////////////////////// | |
14 // mail filter private data, held for us by sendmail | |
15 // | |
16 struct mlfiPriv | |
17 { | |
19
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
18 // connection specific data |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
19 CONFIG *pc; // global filtering configuration |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
20 // message specific data |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
21 const char *mailaddr; // envelope from value |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
22 const char *queueid; // sendmail queue id |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
23 string_set targets; // targets to add at eom, strings are owned by the config |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
24 string_set removal; // targets to remove at eom, strings are owned here |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
25 mlfiPriv(); |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
26 ~mlfiPriv(); |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
27 void reset(bool final = false); // for a new message |
0 | 28 }; |
29 | |
19
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
30 void my_syslog(mlfiPriv *priv, const char *text); |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
31 void my_syslog(const char *text); |
0 | 32 |
33 #endif |