[sylpheed-jp:10786] Re: 文字エンコーディングの自動 検出に失敗する場合がある
Hiroyuki Yamamoto <[email protected]>
| Newsgroups | gmane.mail.sylpheed.general.japanese |
|---|---|
| Message-ID | <[email protected]> |
山本です。 On Fri, 7 Aug 2009 11:40:47 +0900 IWAMOTO Kouichi <[email protected]> wrote: > 最近、特定の人からのメールで文字エンコーディングの自動検出に失敗するの > で確認してみたところ、以下のように 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. > > と書かれていますので、対応して頂けるとありがたいです。 svn r2201 で対応しました。 (本当は他のヘッダも対応すべきですが、バグを入れてしまう危険もあるので とりあえず charset のみ) -- Hiroyuki Yamamoto <[email protected]>