annotate src/sm-archive.h @ 2:32b57406b656

initial version
author carl
date Fri, 10 Mar 2006 10:47:12 -0800
parents 616666e2f34c
children ed73e6361570
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
616666e2f34c initial version
carl
parents:
diff changeset
16 char *mailaddr; // envelope from value
616666e2f34c initial version
carl
parents:
diff changeset
17 char *queueid; // sendmail queue id
616666e2f34c initial version
carl
parents:
diff changeset
18 bool processed_from; // looked at env_from address
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