Mercurial > dnsbl
diff src/dnsbl.cpp @ 475:9b4477b75065
fix dkim regex
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 20 Feb 2021 10:20:36 -0800 |
parents | 5209e92b4885 |
children | fcf66a7aead5 |
line wrap: on
line diff
--- a/src/dnsbl.cpp Sat Feb 20 09:47:57 2021 -0800 +++ b/src/dnsbl.cpp Sat Feb 20 10:20:36 2021 -0800 @@ -2063,7 +2063,7 @@ } // setup dkim results signature detection - if (regcomp(&dkim_r_pattern, "\\sdkim=pass\\s*.[0-9]*-bit key.*\\s*header.d=([^ ]+)\\s", REG_ICASE | REG_EXTENDED)) { + if (regcomp(&dkim_r_pattern, "\\sdkim=pass\\s*\([0-9]*-bit key[^\)]*\)\\s*header.d=([^ ]+)\\s", REG_ICASE | REG_EXTENDED)) { printf("cannot compile regex pattern to find dkim results signatures\n"); exit(3); }