[sylpheed-jp:10785] 文字エンコーディングの自動検出に失敗する場合がある

IWAMOTO Kouichi sue @ iwmt.org
2009年 8月 7日 (金) 11:40:47 JST


岩本といいます。

最近、特定の人からのメールで文字エンコーディングの自動検出に失敗するので
確認してみたところ、以下のように Content-Type ヘッダにコメントが付いていると
自動検出に失敗するようです。

Content-Type: text/plain; charset=ISO-2022-JP (comment)

あまり無いケースだとは思いますが、RFC2045 で

| Note that the value of a quoted string parameter does not include the
| quotes.  That is, the quotation marks in a quoted-string are not a
| part of the value of the parameter, but are merely used to delimit
| that parameter value.  In addition, comments are allowed in
| accordance with RFC 822 rules for structured header fields.  Thus the
| following two forms
|
|   Content-type: text/plain; charset=us-ascii (Plain text)
|
|   Content-type: text/plain; charset="us-ascii"
|
| are completely equivalent.

と書かれていますので、対応して頂けるとありがたいです。

-- 
いわもと こういち(sue @ iwmt.org/sue @ postfix.jp/sue @ TeraTerm.Net)
# なるようになれ、明日もイケイケ♪
-------------- next part --------------
てすと




Sylpheed-jp メーリングリストの案内