好在 mutt 会把 MIME 参数传送给 mailcap 的处理语句,这样,比如
Content-Type: text/html; charset=gb2312这个 charset 也会作为变量 %{charset} 传送给命令行,所以,我们在 ~/.mailcap 里面设置
text/html; w3m -I %{charset} -T text/html ; nametemplate=%s.html; copiousoutput;就可以把任意 text/html 内容转换成 utf-8,然后用 w3m 显示。
参考文献: 《Mutt 用户手册》第五章。
No comments:
Post a Comment