annotate src/sm-archive.h @ 8:ed73e6361570 stable-1-0

initial version
author carl
date Fri, 10 Mar 2006 12:55:07 -0800
parents 32b57406b656
children 75e1a9bcbc2e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
32b57406b656 initial version
carl
parents: 0
diff changeset
1 #ifndef smarchive_include
32b57406b656 initial version
carl
parents: 0
diff changeset
2 #define smarchive_include
0
616666e2f34c initial version
carl
parents:
diff changeset
3
616666e2f34c initial version
carl
parents:
diff changeset
4 #include "context.h"
616666e2f34c initial version
carl
parents:
diff changeset
5
616666e2f34c initial version
carl
parents:
diff changeset
6 extern int debug_syslog;
616666e2f34c initial version
carl
parents:
diff changeset
7
616666e2f34c initial version
carl
parents:
diff changeset
8 ////////////////////////////////////////////////
616666e2f34c initial version
carl
parents:
diff changeset
9 // mail filter private data, held for us by sendmail
616666e2f34c initial version
carl
parents:
diff changeset
10 //
616666e2f34c initial version
carl
parents:
diff changeset
11 struct mlfiPriv
616666e2f34c initial version
carl
parents:
diff changeset
12 {
616666e2f34c initial version
carl
parents:
diff changeset
13 // connection specific data
616666e2f34c initial version
carl
parents:
diff changeset
14 CONFIG *pc; // global filtering configuration
616666e2f34c initial version
carl
parents:
diff changeset
15 // message specific data
8
ed73e6361570 initial version
carl
parents: 2
diff changeset
16 char *mailaddr; // envelope from value
ed73e6361570 initial version
carl
parents: 2
diff changeset
17 char *queueid; // sendmail queue id
ed73e6361570 initial version
carl
parents: 2
diff changeset
18 string_set targets; // targets to add at eom, strings are owned by the config
0
616666e2f34c initial version
carl
parents:
diff changeset
19 mlfiPriv();
616666e2f34c initial version
carl
parents:
diff changeset
20 ~mlfiPriv();
616666e2f34c initial version
carl
parents:
diff changeset
21 void reset(bool final = false); // for a new message
616666e2f34c initial version
carl
parents:
diff changeset
22 };
616666e2f34c initial version
carl
parents:
diff changeset
23
616666e2f34c initial version
carl
parents:
diff changeset
24 void my_syslog(mlfiPriv *priv, char *text);
616666e2f34c initial version
carl
parents:
diff changeset
25 void my_syslog(char *text);
616666e2f34c initial version
carl
parents:
diff changeset
26
616666e2f34c initial version
carl
parents:
diff changeset
27 #endif