annotate src/sm-archive.h @ 27:9298f8b00db2 stable-1-0-10

patches from Takao Abe add switches for config and pid files
author Carl Byington <carl@five-ten-sg.com>
date Thu, 24 May 2018 10:35:45 -0700
parents b24369330483
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
1 /*
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
2
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
3 Copyright (c) 2007 Carl Byington - 510 Software Group, released under
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
4 the GPL version 3 or any later version at your choice available at
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
5 http://www.gnu.org/licenses/gpl-3.0.txt
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
6
75e1a9bcbc2e gpl3, add removal option for original recipients
carl
parents: 8
diff changeset
7 */
2
32b57406b656 initial version
carl
parents: 0
diff changeset
8 #ifndef smarchive_include
32b57406b656 initial version
carl
parents: 0
diff changeset
9 #define smarchive_include
0
616666e2f34c initial version
carl
parents:
diff changeset
10
616666e2f34c initial version
carl
parents:
diff changeset
11 extern int debug_syslog;
616666e2f34c initial version
carl
parents:
diff changeset
12
616666e2f34c initial version
carl
parents:
diff changeset
13 ////////////////////////////////////////////////
616666e2f34c initial version
carl
parents:
diff changeset
14 // mail filter private data, held for us by sendmail
616666e2f34c initial version
carl
parents:
diff changeset
15 //
616666e2f34c initial version
carl
parents:
diff changeset
16 struct mlfiPriv
616666e2f34c initial version
carl
parents:
diff changeset
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
616666e2f34c initial version
carl
parents:
diff changeset
28 };
616666e2f34c initial version
carl
parents:
diff changeset
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
616666e2f34c initial version
carl
parents:
diff changeset
32
616666e2f34c initial version
carl
parents:
diff changeset
33 #endif