[mew-dist 29643] 非標準の Content-Type: を mew-mime-content-type に入れておくか
Masamichi HOSODA
trueroad at example.com
2013年 10月 23日 (水) 00:42:47 JST
細田です。
たまに
Content-Type: image/bmp
となっている添付ファイルがついているメールを受け取ることがあります。
image/bmp は IANA に登録されていないようなので、
本当は image/x-bmp 等でなければならないのでしょうけど、
なし崩し的に広く使われてしまっているように思います。
この手の非標準だけど広く使われてしまっている Content-Type: を
最初から mew-mime-content-type に入れておくのは、
どうでしょうか?
ポリシー的に非標準のものは取り込まないで、
各自 .mew で設定するという考え方もあるとは思いますが、
とりあえずパッチを作ってみました。
image/bmp の他に、
非標準だけど見たことのある image/jpg (正解は image/jpeg)も
つけてあります。
--- mew-varsx.el.old 2013-10-23 00:22:51.054600400 +0900
+++ mew-varsx.el 2013-10-23 00:25:51.270347900 +0900
@@ -80,11 +80,13 @@
("image/tiff" "\\.tif?f$" mew-b64 mew-prog-image mew-icon-image tiff)
("image/jpeg" "\\.jpe?g$" mew-b64 mew-prog-image mew-icon-image jpeg)
("image/pjpeg" "\\.jfif$" mew-b64 mew-prog-image mew-icon-image jpeg) ;; MS
+ ("image/jpg" "^$" mew-b64 mew-prog-image mew-icon-image jpeg) ;; unofficial
("image/png" "\\.png$" mew-b64 mew-prog-image mew-icon-image png)
("image/x-xwd" "\\.xwd$" mew-b64 mew-prog-image mew-icon-image xwd)
("image/x-xbm" "\\.xbm$" mew-b64 mew-prog-image mew-icon-image xbm)
("image/x-xpm" "\\.xpm$" mew-b64 mew-prog-image mew-icon-image xpm)
("image/x-bmp" "\\.bmp$" mew-b64 mew-prog-image mew-icon-image bmp)
+ ("image/bmp" "^$" mew-b64 mew-prog-image mew-icon-image bmp) ;; unofficial
("image/x-pcx" "\\.pcx$" mew-b64 mew-prog-image mew-icon-image PCX)
("image/x-tga" "\\.tga$" mew-b64 mew-prog-image mew-icon-image TGA)
("image/vnd.ms-modi" "\\.mdi$" mew-b64 mew-prog-image mew-icon-image)
取り込んでいただけそうであれば pull request しますし、
非標準のものは取り込めないということであれば .mew で追加するようにします。
細田 真道 <trueroad at example.com>
Mew-dist メーリングリストの案内