mutt/mailcap @ 2f29e1e7ac35

zsh: add djangotests alias
author Steve Losh <steve@stevelosh.com>
date Wed, 09 Feb 2011 19:11:48 -0500
parents 726059940dc3
children 5e73be7be68c
# ~/.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/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; elinks -force-html %s

# Unidentified.
application/octet-stream; ~/.mutt/view_attachment.sh %s "-"