----- Original Message ----- 
From: "Andrzej Adam Filip" <[EMAIL PROTECTED]>
To: "Oleg R" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, April 17, 2008 11:46 AM
Subject: Re: [exim] Making my exim autoresponder multilingual


> "Oleg R" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]'\
>>        AND status='1'}}}{no}{yes}}
>>      no_verify
>>      no_expn
>>      unseen
>>      transport = address_mysql
>>
>> ################Transport
>> address_mysql:
>>   driver   = autoreply
>>     from     = [EMAIL PROTECTED]
>>     reply_to = [EMAIL PROTECTED]
>>     to       = ${sender_address}
>>     subject  = ${lookup mysql{SELECT subject FROM autoresponders WHERE \
>>                 email='${quote_mysql:[EMAIL PROTECTED]'}{$value}}
>>     text     = ${lookup mysql{SELECT body FROM autoresponders WHERE \
>>                 email='${quote_mysql:[EMAIL PROTECTED]'}{$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: <[EMAIL PROTECTED]>
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.





-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to