【问题标题】:How to configure Emacs/VM to decode text/html mails using lynx rather than emacs-w3m?如何配置 Emacs/VM 以使用 lynx 而不是 emacs-w3m 解码文本/html 邮件?
【发布时间】:2011-07-03 18:22:04
【问题描述】:

我最近升级到 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 直到我将其设置为猞猁)。是我遗漏了什么还是 vm 搞砸了,我应该选择另一个 emacs 邮件阅读器?

【问题讨论】:

    标签: emacs emacs23 lynx


    【解决方案1】:

    我在 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'.)
    

    请注意,此变量没有设置为“自动选择”,而是默认设置为“emacs--w3m”。 将以下内容添加到我的 vm 配置中对我有用: (setq vm-mime-text/html-handler "lynx") 并且 html 电子邮件的 yanking 工作(与 w3m-emacs 发生在我身上的事情相反)

    【讨论】:

    • 将 `vm-mime-text/html-handler' 设置为 'auto-select 要求 VM 按照 NEWS 公告中指定的优先顺序自动选择 html 渲染器。因此,如果您的安装有 emacs-w3m,它将被设置为 'emacs-w3m。您可以通过将其设置为您选择的 html 渲染器来覆盖它。
    【解决方案2】:

    试试(setq vm-mime-renderer-for-text/html 'lynx)。它曾经为使用 vm 8.0 的人工作过,as seen here

    【讨论】:

    • 谢谢。 vm-mime-renderer-for-text/html 没有在 vm-8 发行版中定义,但是一个快速的 grep 在 contrib 文件夹的一个补丁中发现了它。通过补丁 lisp/vm-mime.el contrib/vm-mime.el-w3m.patch 应用补丁失败:(
    猜你喜欢
    • 2012-06-02
    • 1970-01-01
    • 1970-01-01
    • 2011-05-26
    • 1970-01-01
    • 1970-01-01
    • 2011-06-17
    • 1970-01-01
    • 2012-12-27
    相关资源
    最近更新 更多