mutt/mailcap @ 3d37ca22c5c5
bpollack/use-command-to-explicitly-call-ag-and-us-1442506830050
Use command to explicitly call ag, and use compound if block
author |
Benjamin Pollack <benjamin@bitquabit.com> |
date |
Thu, 17 Sep 2015 16:20:42 +0000 |
parents |
1d45e21ca4d7 |
children |
b86a3b6153f2 |
# ~/.mutt/mailcap
#
# this uses the view_attachment script found in ~/.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; ~/.mutt/view_attachment.sh %s
application/ms-exc; ~/.mutt/view_attachment.sh %s
application/excel; ~/.mutt/view_attachment.sh %s
application/msexcel; ~/.mutt/view_attachment.sh %s
application/vnd.ms-exc; ~/.mutt/view_attachment.sh %s
application/vnd.ms-excel; ~/.mutt/view_attachment.sh %s
# MS Word
# use textedit to open .doc files as it's more light-weight
application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app'
# Images
image/jpg; ~/.mutt/view_attachment.sh %s jpg
image/jpeg; ~/.mutt/view_attachment.sh %s jpg
image/pjpeg; ~/.mutt/view_attachment.sh %s jpg
image/png; ~/.mutt/view_attachment.sh %s png
image/gif; ~/.mutt/view_attachment.sh %s gif
# PDF
# application/pdf; ~/.mutt/view_attachment.sh %s pdf
# HTML
text/html; ~/.mutt/view_attachment.sh %s html
# Unidentified.
application/octet-stream; ~/.mutt/view_attachment.sh %s "-"