Mercurial > dnsbl
diff src/context.cpp @ 384:7b7066a51c33
start parsing spf txt records
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 06 Mar 2017 14:01:14 -0800 |
parents | c378e9d03f37 |
children | 2354a1944e49 |
line wrap: on
line diff
--- a/src/context.cpp Mon Mar 06 12:30:35 2017 -0800 +++ b/src/context.cpp Mon Mar 06 14:01:14 2017 -0800 @@ -1126,10 +1126,10 @@ bool CONTEXT::resolve_spf(const char *from, uint32_t ip, mlfiPriv *priv, int level) { char buf[maxlen]; + log(priv->queueid, "looking for %s txt record", from); dns_interface(*priv, from, ns_t_txt, false, NULL, buf, maxlen); if (*buf) { - log(priv->queueid, "found txt record for %s", from); - log(priv->queueid, "found txt record value %s", buf); + log(priv->queueid, "found txt record %s", buf); char *p = buf; char *e = p + strlen(p); // point to trailing null while (p = strstr(p, " ip4:")) {