Mercurial > dnsbl
diff src/dnsbl.cpp @ 156:a220bfb9211f
add auto whitelisting
author | carl |
---|---|
date | Sun, 08 Jul 2007 09:46:55 -0700 |
parents | 89ce226e5383 |
children | ea7c57a4a2d1 |
line wrap: on
line diff
--- a/src/dnsbl.cpp Sat Jul 07 21:39:45 2007 -0700 +++ b/src/dnsbl.cpp Sun Jul 08 09:46:55 2007 -0700 @@ -962,7 +962,7 @@ if (debug_syslog > 1) { char buf[maxlen]; char msg[maxlen]; - snprintf(msg, sizeof(msg), "from <%s> to <%s> using context %s out %s reply %s", priv.mailaddr, loto, con.get_full_name(buf,maxlen), fromvalue, replyvalue); + snprintf(msg, sizeof(msg), "from <%s> to <%s> using context %s state %s reply state %s", priv.mailaddr, loto, con.get_full_name(buf,maxlen), fromvalue, replyvalue); my_syslog(&priv, msg); } free(loto); @@ -1026,6 +1026,12 @@ WHITELISTERP w = con2.find_autowhite(priv.mailaddr); if (w) { char *loto = to_lower_string(rcptaddr); + if (debug_syslog > 1) { + char buf[maxlen]; + char msg[maxlen]; + snprintf(msg, sizeof(msg), "whitelist reply from <%s> in context %s", loto, con.get_full_name(buf,maxlen)); + my_syslog(&priv, msg); + } w->sent(loto); // don't free it, the whitelister takes ownership of the string } // accept the recipient