On Sun, Feb 03, 2002 at 11:43:48PM -0800, Craig Hughes wrote: > > No, not really any way to avoid this... it's a fairly important part > of NoMailAudit.pm > > I've looked again and again at the relevant lines and can't make out > what could possibly be going wrong. It seems these header line > aren't matching the regex which jm built for matching email header > lines, but for the life of me it looks fine. Could some of you take > a look at NoMailAudit.pm:118 and let me know why > > Date: Sun, 3 Feb 2002 14:31:08 +0000 (GMT) > > or > > X-Mailing-List: [EMAIL PROTECTED] > > don't match. They sure seem to, even when I just feed them to a simple > perl script to try and match the regex...
Same here. I just used: ---snip--- #!/usr/local/bin/perl -w $|++; while (<>) { print $_; if (/^([^\x00-\x1f\x7f-\xff :]+):\s*(.*)$/) { print "match\n"; } else { print "no match\n"; } } ---snip--- To confirm it. > If they're matching, then I have no clue how we could get to the > part at line 127 where a new header is created. Me either. So it's not matching for *some* reason. We need to see the raw input it is getting. Either the input is being magled before that test, or that test is being handed something unexpected. Sidenote: There's no reason for the '$' at the end of he regex, other than the documentation value of having it there, right? Jeremy -- Jeremy D. Zawodny | Perl, Web, MySQL, Linux Magazine, Yahoo! <[EMAIL PROTECTED]> | http://jeremy.zawodny.com/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk