[rt-users] "Unrecognised line" error from EmailParser

David Schnardthorst daves at wavesco.com
Tue Aug 31 09:21:10 EDT 2004


I had this problem as well and by upgrading to perl 5.8.5 the problem went
away.

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nathan Ward
Sent: Monday, August 30, 2004 10:38 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] "Unrecognised line" error from EmailParser

I have applied the following patch to my RT installation, but am still
getting the following error:

<snip>
Unrecognised line: Nathan Ward <nward at quicksilver.co.nz> at
/usr/local/rt-3.2.1/lib/RT/EmailParser.pm line 449 </snip>

<snip>
Modified: lib/RT/EmailParser.pm
========================================================================
======
--- lib/RT/EmailParser.pm       (original)
+++ lib/RT/EmailParser.pm       Fri Jul 30 15:59:24 2004
@@ -467,6 +467,8 @@
      my $self = shift;
      my $Addr = shift;

+    # Perl 5.8.0 breaks when doing regex matches on utf8
+    Encode::_utf8_off($Addr) if $] == 5.008;
      my @Addresses = Mail::Address->parse($Addr);

      my $AddrObj = $Addresses[0];
</snip>

I'm running perl-5.8.0 on RHEL3, which others seem to have working..
Anyone have any thoughts as to why this error remains?
Is there a way to test that the utf8 flag is actually being turned off, and
print a message to STDERR?

--
Nathan Ward

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com




More information about the rt-users mailing list