Re: [exim] Making my exim autoresponder multilingual

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Oleg R
Date:  
À: Andrzej Adam Filip
CC: exim-users
Sujet: Re: [exim] Making my exim autoresponder multilingual
----- Original Message -----
From: "Andrzej Adam Filip" <anfi@???>
To: "Oleg R" <oleg@???>
Cc: <exim-users@???>
Sent: Thursday, April 17, 2008 11:46 AM
Subject: Re: [exim] Making my exim autoresponder multilingual


> "Oleg R" <oleg@???> wrote:
>
>> Hello everyone. I came acrros a problem with my exim autoresponder which
>> sends messages only in english . I need exim to autorespond in a
>> different
>> charset like cp1251, koi8-r that stands for cyrrilic languages. I will
>> briefly describe my configuration:
>>
>> ################Router
>> mysql_autorespond:
>>   driver = accept
>>     condition = ${if eq{} {${lookup mysql{SELECT status \
>>        FROM autoresponders WHERE email=
>> '${quote_mysql:${local_part}@${domain}}'\
>>        AND status='1'}}}{no}{yes}}
>>      no_verify
>>      no_expn
>>      unseen
>>      transport = address_mysql

>>
>> ################Transport
>> address_mysql:
>>   driver   = autoreply
>>     from     = ${local_part}@${domain}
>>     reply_to = ${local_part}@${domain}
>>     to       = ${sender_address}
>>     subject  = ${lookup mysql{SELECT subject FROM autoresponders WHERE \
>>                 email='${quote_mysql:${local_part}@${domain}}'}{$value}}
>>     text     = ${lookup mysql{SELECT body FROM autoresponders WHERE \
>>                 email='${quote_mysql:${local_part}@${domain}}'}{$value}}
>>     headers = "Content-Type: text/plain; charset=windows-1251"
>> -----------------------------------------------------------------------------
>> Also i have compiled exim with option HEADERS_CHARSET="CP1251" . The
>> database charset that holds the autoresponders texts  is also cp1251. The
>> problem is when I send any message to a user with autoresponder text in
>> cyrrilic(cp1251,win-1251) I receive only question marks (???????). What 
>> can
>> cause that or how can I solve this problem? Thanks a lot for your time.

>>
>> Oleg R.
>
> You have "forgotten" to add "MIME-Version:" header.
> It is wise to always use all three MIME headers.
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> BTW have you considered using UTF-8 charset?
>


OK, I've added the all three needed headers :

      headers="MIME-Version: 1.0\nContent-Type: text/plain; 
charset=windows-1251\nContent-Transfer-Encoding: 7bit\n"


and i can see this header is in the auroresponded message but still the
questions marks:

##############################message header
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: 7bit
Message-Id: <E1JmQ8M-0006TN-6e@mail.***>
Date: Thu, 17 Apr 2008 12:10:22 +0300
Old-X-EsetId: B4BBC924F1F17769ABBDC975FCAA30
X-EsetId: B4BBC924F1F17769ABBDC975FCAA30
X-EsetScannerBuild: 2692


???°????????
##################################
I will switch to utf-8 as soon as I will fix the problem with cp1251.

Thank you.