如何配置 Emacs/VM 使用 lynx 而不是 emacs-w3m 解码文本/html 邮件?

发布于 2024-10-19 14:56:25 字数 704 浏览 7 评论 0原文

我最近升级到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦境 2024-10-26 14:56:25

我通过更多谷歌搜索找到了答案,在 vm-8.1 的发行说明中
(http://savannah.c3sl.ufpr.br/viewmail/NEWS)

 text/html 处理由新变量控制
    `vm-mime-text/html-handler' 设置为“自动选择”
    默认。它使VM在其中找到最好的库
    emacs-w3m,外部w3m,w3和lynx显示html
    内部。 (这取代了之前的变量
    `vm-mime-use-w3-for-text/html'。)

请注意,此变量设置为“自动选择”,而是默认设置为“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)

    text/html handling controlled by a new variable
    `vm-mime-text/html-handler' which is set to 'auto-select by
    default.  It causes VM to locate the best library among
    emacs-w3m, external w3m, w3 and lynx to display html
    internally.  (This replaces the earlier variable
    `vm-mime-use-w3-for-text/html'.)

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)

温柔戏命师 2024-10-26 14:56:25

尝试 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文