Decoding of requestor name broken

Hi!

The problem is that the perfectly valid requestor name like
"=?koi8-r?B?9MHU2NHOwSDixczRy8/XwQ==?=" (in “From:” message field) after RT
processing becomes broken.

It seems that the bug in lib/RT/Interface/Email.pm line 208:
$Name = Encode::encode(utf8 => $Name, Encode::FB_PERLQQ()) if defined $Name;

Before processing this line $Name contains a valid name (in utf-8), but
after it becomes broken.
Is there any way to fix this ?

rt-3.0.7_1
perl-5.8.2

Thanks!
Igor

Hi!

The problem is that the perfectly valid requestor name like
"=?koi8-r?B?9MHU2NHOwSDixczRy8/XwQ==?=" (in “From:” message field) after RT
processing becomes broken.

It seems that the bug in lib/RT/Interface/Email.pm line 208:
$Name = Encode::encode(utf8 => $Name, Encode::FB_PERLQQ()) if defined $Name;

Before processing this line $Name contains a valid name (in utf-8), but
after it becomes broken.
Is there any way to fix this ?

Igor,

Can you send me an email message that would exhibit this problem

after being fed into RT?

Spasibo,
Jesse

http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Hi!

The problem is that the perfectly valid requestor name like
"=?koi8-r?B?9MHU2NHOwSDixczRy8/XwQ==?=" (in “From:” message field) after
RT

processing becomes broken.

It seems that the bug in lib/RT/Interface/Email.pm line 208:
$Name = Encode::encode(utf8 => $Name, Encode::FB_PERLQQ()) if defined
$Name;

Before processing this line $Name contains a valid name (in utf-8), but
after it becomes broken.
Is there any way to fix this ?

Yeah. that line is historical and should be removed. And has been as of
change 376.

-jesse

http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Yeah. that line is historical and should be removed. And has been as of
change 376.

Thanks! It works fine now.

Best Regards,
Igor