http://issues.apache.org/SpamAssassin/show_bug.cgi?id=3979
------- Additional Comments From [EMAIL PROTECTED] 2006-07-20 00:21 ------- > $result =~ s/(?<!<)"[^"]*"//g; try: 'To11:addr' failed! expect: '"Some User"@foo' got: '@foo' If <"Some User"@foo> is valid, I'd imagine we also want to handle "Some User"@foo without the angle brackets, no? If so, either the above with a negative look-ahead: $result =~ s/(?<!<)"[^"]*"(?!@)//g; or the original all-at-once way will do it: $result =~ s/^\s*".*?"\s*<(.*?)>.*$/$1/; BTW... [EMAIL PROTECTED] trunk]$ svn ci -m "bug 3979: add tests for correct :addr stripping" Sending MANIFEST Adding t/get_headers.t Transmitting file data .. Committed revision 423667. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
