修改.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