comparison 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
comparison
equal deleted inserted replaced
474:82c85169a738 475:9b4477b75065
2061 printf("cannot compile regex pattern to find prvs coding in mail addresses\n"); 2061 printf("cannot compile regex pattern to find prvs coding in mail addresses\n");
2062 exit(3); 2062 exit(3);
2063 } 2063 }
2064 2064
2065 // setup dkim results signature detection 2065 // setup dkim results signature detection
2066 if (regcomp(&dkim_r_pattern, "\\sdkim=pass\\s*.[0-9]*-bit key.*\\s*header.d=([^ ]+)\\s", REG_ICASE | REG_EXTENDED)) { 2066 if (regcomp(&dkim_r_pattern, "\\sdkim=pass\\s*\([0-9]*-bit key[^\)]*\)\\s*header.d=([^ ]+)\\s", REG_ICASE | REG_EXTENDED)) {
2067 printf("cannot compile regex pattern to find dkim results signatures\n"); 2067 printf("cannot compile regex pattern to find dkim results signatures\n");
2068 exit(3); 2068 exit(3);
2069 } 2069 }
2070 2070
2071 // setup dkim results signature detection 2071 // setup dkim results signature detection