# MS Word documents application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' # Images image/jpg; open %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 # Video video/quicktime; ~/.mutt/view_attachment.sh %s mov # PDFs #application/pdf; ~/.mutt/view_attachment.sh %s pdf # application/pdf; { mv -T %s %s.mv \; ( zathura %s.mv \; rm %s.mv \; ) & } \; #application/pdf; evince %s; disown -a # HTML # linux # text/html; firefox-trunk %s & sleep 5; # os x #text/html; ~/.mutt/view_attachment.sh %s html text/html; w3m -I %{charset} -T text/html; copiousoutput; #zip application/zip; ~/.mutt/view_attachment.sh %s zip # Unidentified files application/octet-stream; ~/.mutt/view_attachment.sh %s "-"