Mercurial > dnsbl
diff src/dnsbl.cpp @ 364:df45a2377632
allow upstream opendkim header to be wrapped
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jan 2017 13:08:00 -0800 |
parents | ef7479b2d64f |
children | 9fc05f3a824f |
line wrap: on
line diff
--- a/src/dnsbl.cpp Mon Jan 16 12:43:32 2017 -0800 +++ b/src/dnsbl.cpp Mon Jan 16 13:08:00 2017 -0800 @@ -1911,13 +1911,13 @@ } // setup dkim results signature detection - if (regcomp(&dkim_r_pattern, " dkim=pass .[0-9]*-bit key. header.d=([^ ]+) ", REG_ICASE | REG_EXTENDED)) { - printf("cannot compile regex pattern to find dkim results gnatures\n"); + if (regcomp(&dkim_r_pattern, "\\sdkim=pass .[0-9]*-bit key. header.d=([^ ]+) ", REG_ICASE | REG_EXTENDED)) { + printf("cannot compile regex pattern to find dkim results signatures\n"); exit(3); } // setup dkim results signature detection - if (regcomp(&dkim_s_pattern, " d=([^;]+);", REG_ICASE | REG_EXTENDED)) { + if (regcomp(&dkim_s_pattern, "\\sd=([^;]+);", REG_ICASE | REG_EXTENDED)) { printf("cannot compile regex pattern to find dkim signatures\n"); exit(3); }