如何配置 Emacs/VM 使用 lynx 而不是 emacs-w3m 解码文本/html 邮件?
我最近升级到 Emacs 23.2.1。我正在使用 VM 版本 8.1.93a 来阅读我的电子邮件。 我曾经通过 vm 配置文件中的以下行将 html 邮件更改为文本:
(add-to-list 'vm-mime-type-converter-alist
'("text/html" "text/plain" "lynx -force_html -dump -stdin"))
但在 emacs 23 下,我收到以下错误消息:
Inline text/html by emacs-w3m display failed:
(error "Emacs-w3m of this version does not support
Emacs 23; try the development version")
在 Emacs 文档中搜索了一下,我以为我已经找到了解决方案,但
(load-library "mm-decode")
(setq mm-text-html-renderer "lynx")
它似乎 vm-8 完全忽略了 vm-mime-type-converter-alist (仍在记录中)和 mm-text-html-renderer (已记录在案,被设置为 w3m 直到我将其设置为 lynx)。我是否错过了什么或者 vm 搞砸了,我应该选择另一个 emacs 邮件阅读器?
I recently upgrated to Emacs 23.2.1. I am using VM version 8.1.93a to read my email.
I used to change html mail to text via the following line in my vm configuration file:
(add-to-list 'vm-mime-type-converter-alist
'("text/html" "text/plain" "lynx -force_html -dump -stdin"))
but under emacs 23 I get the following error message:
Inline text/html by emacs-w3m display failed:
(error "Emacs-w3m of this version does not support
Emacs 23; try the development version")
Searching a bit in Emacs documentation, I thought I had found a solution, by the way of
(load-library "mm-decode")
(setq mm-text-html-renderer "lynx")
But it seems that vm-8 totally ignores both vm-mime-type-converter-alist (which is still documented) and mm-text-html-renderer (which is documented, was set to w3m till I set it to lynx). Did I miss something or is vm messed up and I should choose another emacs mail reader?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过更多谷歌搜索找到了答案,在 vm-8.1 的发行说明中
(http://savannah.c3sl.ufpr.br/viewmail/NEWS)
请注意,此变量未设置为“自动选择”,而是默认设置为“emacs--w3m”。
将以下内容添加到我的虚拟机配置中对我来说很有效:
(setq vm-mime-text/html-handler“lynx”)
并且 html 电子邮件的抓取工作有效(与我使用 w3m-emacs 发生的情况相反)
I found the answer via some more googling, in the release description of vm-8.1
(http://savannah.c3sl.ufpr.br/viewmail/NEWS)
Note that this variable was not set to "auto-select" but to "emacs--w3m" by default.
Adding the following to my vm configuration did the trick for me:
(setq vm-mime-text/html-handler "lynx")
And the yanking of html emails work (contrarily to what happened to me with w3m-emacs)
尝试
(setq vm-mime-renderer-for-text/html 'lynx)
。它曾经对使用 vm 8.0 的人有效,如图所示在这里。Try
(setq vm-mime-renderer-for-text/html 'lynx)
. It had worked for someone using vm 8.0 sometime back, as seen here.