aboutsummaryrefslogtreecommitdiffstats
path: root/_mutt
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-25 12:55:05 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-25 12:55:05 +0800
commit941c070cbd39b3f10f3d9dd5b295707a4d1938b3 (patch)
tree0de18ef95e1a9bb2ac2cc7636d7a104c13b2c283 /_mutt
parenta825d7ec7509d4220c86dd986b7b7b954142e878 (diff)
downloaddotfiles-941c070cbd39b3f10f3d9dd5b295707a4d1938b3.tar.bz2
Move mailcap out of mutt.
Diffstat (limited to '_mutt')
-rw-r--r--_mutt/mailcap119
-rw-r--r--_mutt/muttrc2
2 files changed, 1 insertions, 120 deletions
diff --git a/_mutt/mailcap b/_mutt/mailcap
deleted file mode 100644
index 0ec3d81..0000000
--- a/_mutt/mailcap
+++ /dev/null
@@ -1,119 +0,0 @@
-#
-# mailcap - MIME configuration file
-#
-# Reference:
-# [1] Gray Johnson's Mutt Page
-# http://www.spocom.com/users/gjohnson/mutt/
-#
-# Modified: 2015/02/02
-#
-
-
-# From the attachment menu, if X is running, HTML attachments are sent
-# to netscape for viewing; otherwise, they are sent to w3m. For
-# in-line viewing, the HTML is converted to text.
-#
-# [Comment-out next line so that we can use w3m even within X.]
-#text/html; mutt_netscape %s; test=RunningX
-text/html; w3m -T text/html -I %{charset} -dump %s; \
- nametemplate=%s.html; copiousoutput
-
-# Add capability to edit attachments from the compose menu.
-#
-# Mutt can only edit attachments if they have a mailcap edit entry.
-# (This would be a good thing to fix.) However, a mailcap entry
-# apparently must include the display function--it can't be defaulted.
-# The combination "cat; copiousoutput" comes close to the default in
-# that in invokes the default pager on the output of cat. However,
-# there is apparently no way to specify the default editor--a shell
-# environment variable such as $VISUAL or $EDITOR is as close as we can
-# get.
-#
-text/plain; ~/.mutt/mutt_bgrun.sh gvim -f %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-text/plain; vim %s
-text/*; cat; copiousoutput; edit=$EDITOR %s
-
-message/rfc822; cat; copiousoutput; edit=$EDITOR %s
-
-# The following Microsoft application MIME attachments are viewed from
-# the attachment menu using LibreOffice.
-#
-application/msword; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/msword; word2text %s; copiousoutput
-application/vnd.msword; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/vnd.msword; word2text %s; copiousoutput
-application/vnd.openxmlformats-officedocument.wordprocessingml.document; \
- ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-#
-application/excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/excel; excel2text %s; copiousoutput
-application/msexcel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/msexcel; excel2text %s; copiousoutput
-application/vnd.ms-excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/vnd.ms-excel; excel2text %s; copiousoutput
-application/x-excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/x-excel; excel2text %s; copiousoutput
-application/x-msexcel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/x-msexcel; excel2text %s; copiousoutput
-application/ms-Excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/ms-Excel; excel2text %s; copiousoutput
-#
-application/vnd.ms-powerpoint; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/vnd.ms-powerpoint; ppt2text %s; copiousoutput
-application/x-mspowerpoint; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/x-mspowerpoint; ppt2text %s; copiousoutput
-application/ppt; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/ppt; ppt2text %s; copiousoutput
-
-
-application/pdf; ~/.mutt/mutt_bgrun.sh evince %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/pdf; pdftotext %s -; copiousoutput
-
-application/postscript; ~/.mutt/mutt_bgrun.sh evince %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/postscript; ps2ascii %s; copiousoutput
-
-application/rtf; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/rtf; rtf2text %s; copiousoutput
-
-#application/ms-tnef; tnef -w %s
-
-#application/octet-stream; mutt_octet_view -x %s; test=RunningX
-#application/octet-stream; mutt_octet_view -v %s
-#application/octet-stream; mutt_octet_view %s; copiousoutput
-
-image/*; ~/.mutt/mutt_bgrun.sh feh %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-
-video/*; ~/.mutt/mutt_bgrun.sh vlc %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-
-# Open scripts
-application/x-shellscript; ~/.mutt/mutt_bgrun.sh gvim -f %s; \
- test=sh -c 'test -n "${DISPLAY}"'
-application/x-shellscript; vim %s
-
-# Show archive conents.
-#
-application/x-compressed-tar; tar -tf %s; copiousoutput
-application/x-bzip-compressed-tar; \
- bunzip2 -c %s | tar -tf -; copiousoutput
-application/x-tar-gz; gunzip -c %s | tar -tf -; copiousoutput
-application/x-7z-compressed; 7z l %s; copiousoutput
-
-# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=mailcap: #
diff --git a/_mutt/muttrc b/_mutt/muttrc
index 6b369bb..43172a2 100644
--- a/_mutt/muttrc
+++ b/_mutt/muttrc
@@ -38,9 +38,9 @@ folder-hook 'autistici.*' source ~/.mutt/accounts/autistici
source ~/.mutt/accounts/default
### Files and directories
+set mailcap_path = ~/.mailcap
set alias_file = ~/.mutt/aliases
set certificate_file = ~/.mutt/certificates
-set mailcap_path = ~/.mutt/mailcap
set history_file = ~/.mutt/history
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies