aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-12-02 00:20:09 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-12-02 00:20:09 +0100
commit37f9cfda7f448ad0673e5dc47c35f5b6f72b5ba6 (patch)
tree61d846b4734823c322db559d5e489eebcb7f7af8
parent48b68527e3907eef33b27985fed44c431df24d62 (diff)
downloaddotfiles-37f9cfda7f448ad0673e5dc47c35f5b6f72b5ba6.tar.gz
dotfiles-37f9cfda7f448ad0673e5dc47c35f5b6f72b5ba6.tar.bz2
dotfiles-37f9cfda7f448ad0673e5dc47c35f5b6f72b5ba6.zip
add rifle support to mutt
-rw-r--r--mutt/mailcap2
-rw-r--r--muttrc1
2 files changed, 3 insertions, 0 deletions
diff --git a/mutt/mailcap b/mutt/mailcap
index f1610e9..c2ffbc4 100644
--- a/mutt/mailcap
+++ b/mutt/mailcap
@@ -1,2 +1,4 @@
+application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; rifle /tmp/mutt/$(basename %s) &
+image/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; rifle /tmp/mutt/$(basename %s) &
text/html; ~/.ratpoison/firesend %s &; test=test -n "$DISPLAY"; needsterminal;
text/html; w3m -I %{charset} -T text/html; copiousoutput;
diff --git a/muttrc b/muttrc
index 87b8639..94685b5 100644
--- a/muttrc
+++ b/muttrc
@@ -116,6 +116,7 @@ set status_format="$HOME/.mutt/notify.sh '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n
# Render silly html
set mailcap_path = ~/.mutt/mailcap
+folder-hook . `rm -f /tmp/mutt/*` # delete tmp files created by mailcap
auto_view text/html # view html automatically
alternative_order text/plain text/enriched text/html # save html for last