Re: [Exim] "non-printing character 27"

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nathan Ollerenshaw
Dátum:  
Címzett: Nathan Ollerenshaw
CC: Peter Bowyer, Exim users list
Tárgy: Re: [Exim] "non-printing character 27"
On Aug 5, 2004, at 9:08 PM, Nathan Ollerenshaw wrote:

> On Aug 5, 2004, at 8:57 PM, Peter Bowyer wrote:
>
>>> If I send english subject emails to it, it works fine. Japanese
>>> emails
>>> don't. Simple solution is to remove the $header_subject part, but I
>>> wanted to keep that if possible.
>>
>> Does setting/changing 'headers_charset' help?
>
> I dont think it can, because I won't know what charset the headers will
> be in. But the subject is encoded with RFC2022 (or whatever it is) so i
> should just be able to use the $rheader_subject:. Thanks for pointing
> me to the right part of the docs :)


Solution was to use

headers_charset = iso-2022-jp

globally, then use

auto_reply:
driver = autoreply
subject = [Auto-Reply] ${rfc2047:$header_subject:}
headers = "Content-Type: text/plain; charset=iso-2022-jp"
to = $sender_address
text = ${extract{mailReplyText}{$address_data}}
from = $local_part@$domain

for the transport. Works fine now.

Thanks to everyone for the suggestions. :)

Nathan.

--
Nathan Ollerenshaw - UNIX Systems Engineer
ValueCommerce - http://www.valuecommerce.ne.jp/