Mutt, Mailcap, Cygwin, Chrome: Abrindo anexos em HTML no Mutt

0

Não consigo abrir anexos em HTML no Chrome ao executar o Mutt on Cygwin. Eu visualizo a mensagem e, em seguida, entro na lista de anexos ( v ), depois escolho o text/html anexo e pressiono m para executar o tratamento do mailcap. A janela do Chrome é aberta com sucesso, mas nada está nela. Em vez disso, vejo a seguinte saída na janela do terminal:

[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.

Algumas configurações relevantes:

~/.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

Chrome:

Version 59.0.3071.115 (Official Build) (64-bit)
    
por ChaimKut 17.07.2017 / 11:26

1 resposta

1

Você deve converter o caminho para o formato do Windows com cygpath -w antes de passá-lo para o chrome

/etc/mailcap

text/html; "/cygdrive/c/Program Files \(x86\)/Google/Chrome/Application/chrome.exe" 'cygpath -w %s'; needsterminal;
    
por 09.09.2017 / 21:59

Tags