comparison 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
comparison
equal deleted inserted replaced
363:7fba7cc2150e 364:df45a2377632
1909 printf("cannot compile regex pattern to find prvs coding in mail addresses\n"); 1909 printf("cannot compile regex pattern to find prvs coding in mail addresses\n");
1910 exit(3); 1910 exit(3);
1911 } 1911 }
1912 1912
1913 // setup dkim results signature detection 1913 // setup dkim results signature detection
1914 if (regcomp(&dkim_r_pattern, " dkim=pass .[0-9]*-bit key. header.d=([^ ]+) ", REG_ICASE | REG_EXTENDED)) { 1914 if (regcomp(&dkim_r_pattern, "\\sdkim=pass .[0-9]*-bit key. header.d=([^ ]+) ", REG_ICASE | REG_EXTENDED)) {
1915 printf("cannot compile regex pattern to find dkim results gnatures\n"); 1915 printf("cannot compile regex pattern to find dkim results signatures\n");
1916 exit(3); 1916 exit(3);
1917 } 1917 }
1918 1918
1919 // setup dkim results signature detection 1919 // setup dkim results signature detection
1920 if (regcomp(&dkim_s_pattern, " d=([^;]+);", REG_ICASE | REG_EXTENDED)) { 1920 if (regcomp(&dkim_s_pattern, "\\sd=([^;]+);", REG_ICASE | REG_EXTENDED)) {
1921 printf("cannot compile regex pattern to find dkim signatures\n"); 1921 printf("cannot compile regex pattern to find dkim signatures\n");
1922 exit(3); 1922 exit(3);
1923 } 1923 }
1924 1924
1925 // setup from domain extraction 1925 // setup from domain extraction