comparison src/dnsbl.cpp @ 78:b6beb282fd83

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 14:54:06 -0700
parents 8487650c98ee
children 091d3fe3db46
comparison
equal deleted inserted replaced
77:8487650c98ee 78:b6beb282fd83
649 649
650 650
651 //////////////////////////////////////////////// 651 ////////////////////////////////////////////////
652 // check the hosts from the body against the content dnsbl 652 // check the hosts from the body against the content dnsbl
653 // 653 //
654 bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int ip); 654 bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int &ip);
655 bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int ip) { 655 bool check_hosts(mlfiPriv &priv, bool random, int limit, char *&host, int &ip) {
656 CONFIG &dc = *priv.pc; 656 CONFIG &dc = *priv.pc;
657 string_set &hosts = priv.memory->get_hosts(); 657 string_set &hosts = priv.memory->get_hosts();
658 string_set &ignore = *priv.content_host_ignore; 658 string_set &ignore = *priv.content_host_ignore;
659 char *suffix = priv.content_suffix; 659 char *suffix = priv.content_suffix;
660 660
818 else if (fromvalue == token_white) { 818 else if (fromvalue == token_white) {
819 st = white; 819 st = white;
820 } 820 }
821 else { 821 else {
822 // check the dns based lists 822 // check the dns based lists
823 st = (check_dnsbl(priv, con.get_dnsbl_list(), rejectlist)) ? black : oksofar; 823 st = (check_dnsbl(priv, con.get_dnsbl_list(), rejectlist)) ? reject : oksofar;
824 } 824 }
825 if (st == reject) { 825 if (st == reject) {
826 // reject the recipient based on some dnsbl 826 // reject the recipient based on some dnsbl
827 char adr[sizeof "255.255.255.255"]; 827 char adr[sizeof "255.255.255.255"];
828 adr[0] = '\0'; 828 adr[0] = '\0';