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 followingSubject: =?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.
Dmitry Monakhov System Administrator
Open Technologies, tel: +7(095)787-7027
e-mail: monakhv@ot.ru, http://www.ot.ru/
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.
To solve the problem I had to insert the following call
$self->Head->unfold;
before
RT::I18N::SetMIMEEntityToEncoding($self->{‘entity’}, ‘utf-8’);
Function: _PostProcessNewEntity
File: rt3/lib/RT/EmailParser.pm
Jesse, please be so kind as to put the modification above into RT core
code.
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.
Dmitry Monakhov System Administrator
Open Technologies, tel: +7(095)787-7027
e-mail: monakhv@ot.ru, http://www.ot.ru/
Please open a ticket with a patch in there.
Thanks,
JesseOn Wed, Apr 07, 2004 at 11:55:49AM +0400, Dmitry Monakhov wrote:
To solve the problem I had to insert the following call
$self->Head->unfold;
before
RT::I18N::SetMIMEEntityToEncoding($self->{‘entity’}, ‘utf-8’);
Function: _PostProcessNewEntity
File: rt3/lib/RT/EmailParser.pm
Jesse, please be so kind as to put the modification above into RT core
code.
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.
–
Dmitry Monakhov System Administrator
Open Technologies, tel: +7(095)787-7027
e-mail: monakhv@ot.ru, http://www.ot.ru/
Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.