You are not logged in.
Pages: 1
Topic closed
Hello!
I've installed 0.71 for testing (current system in Production is 0.70.2).
The problem is with mail parser. My users send e-mails to system by strong rule - subject is in Russian, body can have Russian and English words, as GLPI define message language by subj.
But, in 0.71, even if subject of e-mail is in Russian, the body of ticket (all Russian words there) is in piggeon language. This works correctly in 0.70.2... How can I fix this?
Konstantin
Last edited by KonstantinPopov (2008-07-24 07:08:59)
Offline
Please, fix! I have the same problem
Offline
if you would be our slaves there was not word "please"
Offline
Perhaps but the "!" reflects an injunction.
We are not on your service.
IF you want a more quicker correction for your needs use a provider.
JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au projet GLPI : Soutenir
Offline
ok, sorry for "!" and offtopic never wanted to offend you.
i am not good at php but i am not very stupid. can you push me in right direction to fix bug by myself?
please
Last edited by pizdlo (2008-08-29 07:52:47)
Offline
you need to determine whihch lang is used for subject and for the message body.
But it is no real simple to do.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
message is cp1251 codepage (subject&body). Subject is ok, but body is not readable. In UTF8 everything is ok, but it's not possible to change Outlook settings on all clients computers.
thank you
Offline
do you have mbstring installed ?
if subject is well decoded body may be decoded.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
yes, i have mbstring
the mystical things happend. i have downgraded glpi to 0.70.2 and everything was fine with mail and mail body before i posted ticket in web interface. after that it became broken again: message subject is ok, but body is like this: ÷¸ çà õ
message was cp1251 code page
is there any solution? i can't sleep at night %)
Offline
I have same problem with glpi-unstable-2008-10-05. Email submitted tickets have proper encoded subject (in russian and/or english) but bad encoded russian in body.
Multiple GLPI instances. Thanks to developers!
Offline
This move resolved this problem at less for messages sent from gmail, mail.ru and Exchange 2007.
mailgate.class.php
// if (!empty($this->charset)&&function_exists('mb_convert_encoding')){
// $body=mb_convert_encoding($body, 'utf-8',$this->charset);
// }
$body=mb_convert_encoding($body, 'utf-8', 'koi8-r');
And this is example test message sent from gmail:
Received: by 10.90.116.4 with HTTP; Wed, 22 Oct 2008 01:39:29 -0700 (PDT)
Message-ID: <c9e6c9970810220139ke828f71n9e3bcb1c0191cf96@mail.gmail.com>
Date: Wed, 22 Oct 2008 12:39:29 +0400
From: "Test Test" <test@SOMEDOMAIN>
To: support@SOMEDOMAIN
Subject: =?KOI8-R?Q?=E5=DD=C5_=D2=C1=DA_test!?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_15485_17263345.1224664769358"
Delivered-To: test@SOMEDOMAIN
------=_Part_15485_17263345.1224664769358
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: base64
Content-Disposition: inline
5d3FIOXdowqzs7Ozs7Ozs7OzCgoKo6Ojo6MKCuXl5eUK
------=_Part_15485_17263345.1224664769358
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: base64
Content-Disposition: inline
5d3FIOXdozxicj6zs7Ozs7Ozs7OzPGJyPjxicj48YnI+o6Ojo6M8YnI+PGJyPuXl5eU8YnI+Cg==
------=_Part_15485_17263345.1224664769358--
Multiple GLPI instances. Thanks to developers!
Offline
I think it was corrected by :
https://dev.indepnet.net/glpi/changeset/7448
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1
Topic closed