comparison src/context.h @ 156:a220bfb9211f

add auto whitelisting
author carl
date Sun, 08 Jul 2007 09:46:55 -0700
parents 8d7c439bb6fa
children b3ed72ee6564
comparison
equal deleted inserted replaced
155:a76a6af7ed8b 156:a220bfb9211f
100 public: 100 public:
101 WHITELISTER(char *f, int d); 101 WHITELISTER(char *f, int d);
102 void writer(); // dump any changes back to the file 102 void writer(); // dump any changes back to the file
103 void sent(char *to); 103 void sent(char *to);
104 bool is_white(char *from); // should we white list this sender (did we send them anything recently) 104 bool is_white(char *from); // should we white list this sender (did we send them anything recently)
105 int get_days() {return days;}; 105 int get_days() {return days;};
106 void set_days(int d) {days = d;};
106 }; 107 };
107 108
108 struct DNSBL { 109 struct DNSBL {
109 char *name; // nickname for this dns based list 110 char *name; // nickname for this dns based list
110 char *suffix; // blacklist suffix like blackholes.five-ten-sg.com 111 char *suffix; // blacklist suffix like blackholes.five-ten-sg.com