Mutt、Mailcap、Cygwin、Chrome:在 Mutt 中打开 HTML 附件

Mutt、Mailcap、Cygwin、Chrome:在 Mutt 中打开 HTML 附件

在 Cygwin 上运行 Mutt 时,我无法在 Chrome 中打开 HTML 附件。我查看了消息,然后进入附件列表 ( v),然后选择text/html附件并按m执行 mailcap 的处理。Chrome 窗口成功打开,但其中没有任何内容。相反,我在终端窗口中看到以下输出:

[15132:12492:0717/120514.152:ERROR:cache_util_win.cc(20)] Unable to move the cache: 5
[15132:12492:0717/120514.152:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\UserName\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\kutnic\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[15132:12492:0717/120514.152:ERROR:disk_cache.cc(132)] Unable to create cache
[15132:12492:0717/120514.152:ERROR:shader_disk_cache.cc(604)] Shader Cache Creation failed: -2
[15132:12492:0717/120514.210:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

一些相关配置:

~/.muttrc

auto_view text/html # view html automatically
alternative_order text/html text/plain text/enriched  # show html first,for  testing

~/.mailcap

text/html; "/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe" '%s'; description=HTML Text; nametemplate=%s.html
text/html; w3m -I %{charset} -T text/html; copiousoutput;

$ mutt -v
Mutt 1.8.3 (2017-05-23)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: CYGWIN_NT-10.0 2.8.2(0.313/5/3) (x86_64)

$ cygcheck -V
cygcheck (cygwin) 2.8.2

铬合金:

Version 59.0.3071.115 (Official Build) (64-bit)

答案1

您应该先将路径转换为 ​​Windows 格式,然后cygpath -w再将其传递给 Chrome

/etc/mailcap

text/html; "/cygdrive/c/Program Files \(x86\)/Google/Chrome/Application/chrome.exe" `cygpath -w %s`; needsterminal;

相关内容