diff src/dnsbl.cpp @ 352:f5a6740cabee

need to lowercase the domain extracted from the from header so it will match the keys in dkim_from
author Carl Byington <carl@five-ten-sg.com>
date Mon, 26 Dec 2016 12:30:08 -0800
parents f4ca91f49cb6
children 2fd904f2efc2
line wrap: on
line diff
--- a/src/dnsbl.cpp	Mon Dec 26 09:39:14 2016 -0800
+++ b/src/dnsbl.cpp	Mon Dec 26 12:30:08 2016 -0800
@@ -1532,7 +1532,7 @@
             int e1 = match[1].rm_eo;
             if (s1 != -1) {
                 value[e1] = '\0';
-                priv.fromaddr = strdup(value+s1);
+                priv.fromaddr = to_lower_string(value+s1, false);
             }
         }
     }