comparison src/spamass.h @ 177:a4d313c2460b

start embedded dcc filtering
author carl
date Sun, 30 Sep 2007 10:27:14 -0700
parents 6bac960af6b4
children 82886d4dd71f
comparison
equal deleted inserted replaced
176:4ec928b24bab 177:a4d313c2460b
6 6
7 Based on spamass-milter by Georg C. F. Greve <greve@gnu.org> 7 Based on spamass-milter by Georg C. F. Greve <greve@gnu.org>
8 8
9 */ 9 */
10 10
11 #ifndef _SPAMASS_MILTER_H 11 #ifndef _SPAMASS_H
12 #define _SPAMASS_MILTER_H 12 #define _SPAMASS_H
13 13
14 extern "C" { 14 extern "C" {
15 #include <libmilter/mfapi.h> 15 #include <libmilter/mfapi.h>
16 } 16 }
17 17
50 void closeall(int fd); 50 void closeall(int fd);
51 char *getorwarnmacro(SMFICTX *ctx, char *macro, char *def, char *scope); 51 char *getorwarnmacro(SMFICTX *ctx, char *macro, char *def, char *scope);
52 void warnmacro(char *macro, char *scope); 52 void warnmacro(char *macro, char *scope);
53 53
54 public: 54 public:
55 bool error; // spamc died or cannot work 55 bool error; // spamc died or cannot work
56 bool running; // running implies (connected and pid) 56 bool running; // running implies (connected and pid)
57 bool first_recipient; // have we seen any recipients? 57 bool first_recipient; // have we not seen any recipients?
58 58
59 // connection back to main dnsbl priv structure for logging 59 // connection back to main dnsbl priv structure for logging
60 mlfiPriv *priv; 60 mlfiPriv *priv;
61 int ip4; // ip4 address of smtp client 61 int ip4; // ip4 address of smtp client
62 62