mutt使用wvHtml在$HOME中会生成一对.png、.wmf等临时文件的解决办法

来源:互联网 发布:win10 安装软件消失 编辑:程序博客网 时间:2024/05/23 16:56

修改.mailcap文件 


只要在调用wvHtml的时候更改当前目录即可。


例如

# html
text/html ; mkdir -p /tmp/mutt && cd /tmp/mutt && w3m -T text/html -I %{charset} -dump %s ; copiousoutput; nametemplate=%s.html && cd -
# Word
application/msword; mkdir -p /tmp/mutt && cd /tmp/mutt && wvHtml %s - | w3m -dump -T text/html; copiousoutput; nametemplate=%s.html && cd -
# PDF
application/pdf; mkdir -p /tmp/mutt && cd /tmp/mutt && pdftotext %s - | w3m -dump; copiousoutput; nametemplate=%s.txt && cd -
# Excel
#application/excel; xlhtml %s | w3m -dump -T text/html; copiousoutput; nametemplate=%s.html
# PowerPoint
#application/powerpoint; ppthtml %s | w3m -dump -T text/html; copiousoutput; nametemplate=%s.html


原创粉丝点击