ref: 9170f6a857dce13be1281eafbff2e33ef5db1be5
mutt/mailcap
# ~/dotfiles/mutt/mailcap # # this uses the view_attachment script found in ~/dotfiles/mutt/view_attachment.sh # # this is meant for an OS X system # MS Excel # this will use the default xls spreadsheet handler from open application/x-msexcel; ~/dotfiles/mutt/view_attachment.sh %s doc application/ms-exc; ~/dotfiles/mutt/view_attachment.sh %s doc application/excel; ~/dotfiles/mutt/view_attachment.sh %s doc application/msexcel; ~/dotfiles/mutt/view_attachment.sh %s doc application/vnd.ms-exc; ~/dotfiles/mutt/view_attachment.sh %s doc application/vnd.ms-excel; ~/dotfiles/mutt/view_attachment.sh %s doc # MS Word # use textedit to open .doc files as it's more light-weight application/msword; ~/dotfiles/mutt/view_attachment.sh %s doc # docx application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/dotfiles/mutt/view_attachment.sh %s doc # xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ~/dotfiles/mutt/view_attachment.sh %s doc # Images image/jpeg; ~/dotfiles/mutt/view_attachment.sh %s img image/pjpeg; ~/dotfiles/mutt/view_attachment.sh %s img image/png; ~/dotfiles/mutt/view_attachment.sh %s img image/gif; ~/dotfiles/mutt/view_attachment.sh %s img # PDF application/pdf; ~/dotfiles/mutt/view_attachment.sh %s pdf # HTML text/html; ~/dotfiles/mutt/view_attachment.sh %s html # text/html; w3m -I %{charset} -T text/html; copiousoutput; # Unidentified. application/octet-stream; ~/dotfiles/mutt/view_attachment.sh %s "-"