"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?
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@??? : anfi@???
"It is the creationists who blasphemously are claiming that God is
cheating us in a stupid way."
-- J. W. Nienhuys