dotfiles

ref: ebdda171d992ee83085c72b932bb69421c54e917

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 "-"