muttでHTMLメールを扱う

~/.muttrc に以下追記

# html mailを読むための設定
set mailcap_path=~/.mutt/mailcap
auto_view text/html
alternative_order text/plain text/html
# HTMLメールを開く vで添付画面へ行ってそこでctrl-sを押すとHTMLを保存
macro attach \cs "<pipe-entry>cat > /tmp/mutt-mail.html"
# HTML内のリンクを表示
macro index \cv |urlview
macro pager \cv |urlview

~/.mutt/mailcap

text/html; w3m -I %{charset} -T text/html; copiousoutput;

参考リンク

https://wiki.archlinux.jp/index.php/Mutt