comparison src/dnsbl.cpp @ 296:05b604c99e06 stable-6-0-43

allow broken SRS0+ rather than the correct SRS0= tag
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 15:08:53 -0700
parents fbbc341001cc
children 13905d36ca82
comparison
equal deleted inserted replaced
295:d239e34df3c5 296:05b604c99e06
1769 int c; 1769 int c;
1770 const char *args = "b:r:p:t:e:d:chs"; 1770 const char *args = "b:r:p:t:e:d:chs";
1771 extern char *optarg; 1771 extern char *optarg;
1772 1772
1773 // setup srs coding detection 1773 // setup srs coding detection
1774 if (regcomp(&srs_pattern, "^srs(0|1)(=|\+)([^=]+)=([^=]+)=([^=]+)=([^@]+)@", REG_ICASE | REG_EXTENDED)) { 1774 if (regcomp(&srs_pattern, "^srs(0|1)(=|\\+)([^=]+)=([^=]+)=([^=]+)=([^@]+)@", REG_ICASE | REG_EXTENDED)) {
1775 printf("cannot compile regex pattern to find srs coding in mail addresses\n"); 1775 printf("cannot compile regex pattern to find srs coding in mail addresses\n");
1776 exit(3); 1776 exit(3);
1777 } 1777 }
1778 1778
1779 // setup prvs coding detection 1779 // setup prvs coding detection