Mercurial > dnsbl
comparison src/dnsbl.cpp @ 154:89ce226e5383
add auto whitelisting
author | carl |
---|---|
date | Sat, 07 Jul 2007 21:24:38 -0700 |
parents | 8d7c439bb6fa |
children | a220bfb9211f |
comparison
equal
deleted
inserted
replaced
153:8d7c439bb6fa | 154:89ce226e5383 |
---|---|
1024 // we will accept the recipient, but add an auto-whitelist entry | 1024 // we will accept the recipient, but add an auto-whitelist entry |
1025 // if needed to ensure we can accept replies | 1025 // if needed to ensure we can accept replies |
1026 WHITELISTERP w = con2.find_autowhite(priv.mailaddr); | 1026 WHITELISTERP w = con2.find_autowhite(priv.mailaddr); |
1027 if (w) { | 1027 if (w) { |
1028 char *loto = to_lower_string(rcptaddr); | 1028 char *loto = to_lower_string(rcptaddr); |
1029 w->sent(loto); | 1029 w->sent(loto); // don't free it, the whitelister takes ownership of the string |
1030 free(loto); | |
1031 } | 1030 } |
1032 // accept the recipient | 1031 // accept the recipient |
1033 if (!con.get_content_filtering()) st = white; | 1032 if (!con.get_content_filtering()) st = white; |
1034 if (st == oksofar) { | 1033 if (st == oksofar) { |
1035 // but remember the non-whites | 1034 // but remember the non-whites |