[rt-users] RT BUG

Sergey Tsvetukhin tsv at ot.ru
Tue Apr 6 07:57:11 EDT 2004


Dmitry Monakhov wrote:

> 
> Hi, All!
> I've discovered new bug in RT mail parser system.
> When you send the mail with the  long subject line
> which mail client split on several line like the following
> 
> Subject: =?KOI8-R?Q?=F4=D5=D4_=C4=CC=C9=CE=CE=D9=CA=2C_=CF=DE=C5=CE=D8?=
>  =?KOI8-R?Q?_=C4=CC=C9=CE=CE=D9=CA_=D3=C1=C2=D6=C5=CB=D4_=D0=CF_=D2?=
>  =?KOI8-R?Q?=D5=D3=D3=CB=C9=2E_=F3_=D4=CF=DE=CB=CF=CA_=D0=CF=D3=C5=D2?=
>  =?KOI8-R?Q?=C5=C4=C9=CE=C5=2E?=
> 
> 
> new tickets are created with parser error and without  auto reply
> corespondens sent.
> 
> 
> Apr  6 13:06:34 ganimed RT: error:    couldn't parse head; error near: 
> ?M-^C?M-^A?M-^Aки. С ?M-^Bо?M-^Gкой по?M-^Aе?M-^@ едине. 
> (/opt/rt3/lib/RT/Template_Overlay.pm:352)
> 
> 
> The single line subjects like this
> Subject: =?KOI8-R?Q?=F4=D5=D4_=C4=CC=C9=CE=CE=D9=CA=2C_=CF=DE=C5=CE=D8?=
> 
> do not couse such errors.

As I know you use RT 3.0.9


try to modify /opt/rt3/lib/RT/EmailParser.pm

in function _PostProcessNewEntity

add next line
     $self->Head->decode;
before
     $self->Head->unfold;


It is idea only, I don't have a test system to check it. :(




More information about the rt-users mailing list