Mailgate and 8bit problem

Hello

I have a problem with create tickets via mailgate,
RT 3.0.2-pre3

grep EmailInputEncoding etc/RT_SiteConfig.pm

@EmailInputEncodings = qw(uft-8 KOI8-R iso-8859-1) unless (@EmailEncodings);

perl -v

This is perl, v5.8.0 built for sun4-solaris

uname -a

SunOS vega 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-60

sendmail is “Sendmail 8.11.7+Sun/8.11.7;”

The first problem is:

I have a message in quoted-printable format:
Return-Path: tsv@test.int
MIME-Version: 1.0
=?KOI8-R?Q?=C9=CE=D9_=CC=D5=DE=DB=C5=2C_=DE=C5=CD_=D2=C1=DA=C4=C5=D4?=
=?KOI8-R?Q?=D9=C5=3F?=
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: quoted-printable

=F0=CF=DE=C5=CD=D5 =CF=C4=C5=D4=D9=C5 =D6=C5=CE=DD=C9=CE=D9 =CC=D5=DE=DB=C5=
, =DE=C5=CD =D2=C1=DA=C4=C5=D4=D9=C5?

  1. =E4=CC=D1 =CB=CF=CD=D0=CC=C9=CD=C5=CE=D4=C1 =CF=C4=C5=D4=CF=CA =D6=C5=CE=
    =DD=C9=CE=C5 =CC=C5=C7=DE=C5 =CE=C1=CA=D4=C9 =D0=CF=D7=CF=C4.

cat msg | /opt/rt3/bin/rt-mailgate --queue test --action correspond --url http://support.test.int/rt/ --debug

Connecting to http://support.test.int/rt//REST/1.0/NoAuth/mail-gateway at /opt/rt3/bin/rt-mailgate line 406, <> chunk 1.
ok
Ticket: 391
Queue: test
Owner: Nobody
Status: new
Requestor: tsv@test.int

but message is damaged

if I comment line
$value = $object->DecodeUTF8($value);
in file lib/RT/Interface/Web.pm all OK

The second problem is:
I have the same message in 8bit format:
Return-Path: tsv@test.int
MIME-Version: 1.0
=?KOI8-R?Q?=C9=CE=D9_=CC=D5=DE=DB=C5=2C_=DE=C5=CD_=D2=C1=DA=C4=C5=D4?=
=?KOI8-R?Q?=D9=C5=3F?=
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 8bit

<8bit characters>

I never can create a correct ticket :frowning:
cat msg | /opt/rt3/bin/rt-mailgate --queue test --action correspond --url http://support.test.int/rt/ --debug

Connecting to http://support.test.int/rt//REST/1.0/NoAuth/mail-gateway at /opt/rt3/bin/rt-mailgate line 406, <> chunk 1.
ok
Ticket: 393
Queue: test
Owner: Nobody
Status: new
Subject:
Requestor:

Subject is empty, Requestor is empty, Body is empty …

What is wrong ?

Sergey Tsvetukhin, Deputy Chief Support&Service Officer
Open Technologies, tel: +7(095)787-7027
e-mail: tsv (at) ot.ru, http://www.ot.ru/

We’re already working on fixing this over the next few days.
Autrijus has promised me a code drop today.On Sun, Apr 27, 2003 at 05:13:51PM +0400, Sergey Tsvetukhin wrote:

Hello

I have a problem with create tickets via mailgate,
RT 3.0.2-pre3

grep EmailInputEncoding etc/RT_SiteConfig.pm

@EmailInputEncodings = qw(uft-8 KOI8-R iso-8859-1) unless (@EmailEncodings);

perl -v

This is perl, v5.8.0 built for sun4-solaris

uname -a

SunOS vega 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-60

sendmail is “Sendmail 8.11.7+Sun/8.11.7;”

The first problem is:

I have a message in quoted-printable format:

Return-Path: tsv@test.int
Date: Wed, 23 Apr 2003 21:31:05 +0400
From: Sergey Tsvetukhin tsv@test.int
MIME-Version: 1.0
To: rt@test.int
Subject: =?KOI8-R?Q?=F0=CF=DE=C5=CD=D5_=CF=C4=C5=D4=D9=C5_=D6=C5=CE=DD?=
=?KOI8-R?Q?=C9=CE=D9_=CC=D5=DE=DB=C5=2C_=DE=C5=CD_=D2=C1=DA=C4=C5=D4?=
=?KOI8-R?Q?=D9=C5=3F?=
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: quoted-printable

=F0=CF=DE=C5=CD=D5 =CF=C4=C5=D4=D9=C5 =D6=C5=CE=DD=C9=CE=D9 =CC=D5=DE=DB=C5=
, =DE=C5=CD =D2=C1=DA=C4=C5=D4=D9=C5?

  1. =E4=CC=D1 =CB=CF=CD=D0=CC=C9=CD=C5=CE=D4=C1 =CF=C4=C5=D4=CF=CA =D6=C5=CE=
    =DD=C9=CE=C5 =CC=C5=C7=DE=C5 =CE=C1=CA=D4=C9 =D0=CF=D7=CF=C4.

cat msg | /opt/rt3/bin/rt-mailgate --queue test --action correspond --url http://support.test.int/rt/ --debug

Connecting to http://support.test.int/rt//REST/1.0/NoAuth/mail-gateway at /opt/rt3/bin/rt-mailgate line 406, <> chunk 1.
ok
Ticket: 391
Queue: test
Owner: Nobody
Status: new
Subject: ii?yimi?y i?i?imyyim i?imi?y i?i?y i"yyyim, yimi? yi°i?i?imy yim?
Requestor: tsv@test.int

but message is damaged

if I comment line
$value = $object->DecodeUTF8($value);
in file lib/RT/Interface/Web.pm all OK

The second problem is:
I have the same message in 8bit format:

Return-Path: tsv@test.int
Date: Wed, 23 Apr 2003 21:31:05 +0400
From: Sergey Tsvetukhin tsv@test.int
MIME-Version: 1.0
To: rt@test.int
Subject: =?KOI8-R?Q?=F0=CF=DE=C5=CD=D5_=CF=C4=C5=D4=D9=C5_=D6=C5=CE=DD?=
=?KOI8-R?Q?=C9=CE=D9_=CC=D5=DE=DB=C5=2C_=DE=C5=CD_=D2=C1=DA=C4=C5=D4?=
=?KOI8-R?Q?=D9=C5=3F?=
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 8bit

<8bit characters>

I never can create a correct ticket :frowning:
cat msg | /opt/rt3/bin/rt-mailgate --queue test --action correspond --url http://support.test.int/rt/ --debug

Connecting to http://support.test.int/rt//REST/1.0/NoAuth/mail-gateway at /opt/rt3/bin/rt-mailgate line 406, <> chunk 1.
ok
Ticket: 393
Queue: test
Owner: Nobody
Status: new
Subject:
Requestor:

Subject is empty, Requestor is empty, Body is empty …

What is wrong ?


Sergey Tsvetukhin, Deputy Chief Support&Service Officer
Open Technologies, tel: +7(095)787-7027
e-mail: tsv (at) ot.ru, http://www.ot.ru/
ЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪКЪШ╛z╩&j)b· b╡зМЧК╝ЪЕ┼кlЩШЪВ( emЪЪЪ√±ЪВЛrЪэ╒oФj)fjЕ┼кb²З?╝ЪН╠ЙЛ╚чй▀╚y╖m┘А@ЪТАyе²╗╝X╞zф╜├шiЪЪъ╠иЪr┴©╝вФ
Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.