From ab4c35e47bb6ccfd7c3af77c66e7d3af195c9917 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 21 May 2017 16:22:39 +0200 Subject: mutt --- by_host/Darwin/mutt/.mutt/mailcap | 6 ++++++ by_host/Darwin/mutt/.mutt/open-in-safari | 8 ++++++++ by_host/Linux/mutt/.mutt/mailcap | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 by_host/Darwin/mutt/.mutt/mailcap create mode 100755 by_host/Darwin/mutt/.mutt/open-in-safari create mode 100644 by_host/Linux/mutt/.mutt/mailcap (limited to 'by_host') diff --git a/by_host/Darwin/mutt/.mutt/mailcap b/by_host/Darwin/mutt/.mutt/mailcap new file mode 100644 index 0000000..a319c8c --- /dev/null +++ b/by_host/Darwin/mutt/.mutt/mailcap @@ -0,0 +1,6 @@ +image/*; cat - | open -W -F -n %s > /dev/null +text/html; ~/.mutt/open-in-safari %s +text/html; w3m -I %{charset} -O utf-8 -T text/html -dump %s; copiousoutput +text/*; cat - | open -W -F -n %s > /dev/null +application/*; cat - | open %s >/dev/null + diff --git a/by_host/Darwin/mutt/.mutt/open-in-safari b/by_host/Darwin/mutt/.mutt/open-in-safari new file mode 100755 index 0000000..0e122f5 --- /dev/null +++ b/by_host/Darwin/mutt/.mutt/open-in-safari @@ -0,0 +1,8 @@ +#!/bin/sh + +cp $1 $1.copy.html +( open -a Safari "$1.copy.html"; +sleep 30; +rm -f "$1.copy.html"; +) & + diff --git a/by_host/Linux/mutt/.mutt/mailcap b/by_host/Linux/mutt/.mutt/mailcap new file mode 100644 index 0000000..8aaaa7e --- /dev/null +++ b/by_host/Linux/mutt/.mutt/mailcap @@ -0,0 +1,10 @@ +text/html; firefox %s &>/dev/null; test=test -n "$DISPLAY"; needsterminal +text/html; w3m -I %{charset} -O utf-8 -T text/html -dump %s; copiousoutput +text/plain; less %s +application/x-pdf; zathura %s +application/pdf; zathura %s +application/octet-stream; zathura %s +image/jpeg; feh %s +image/pjpeg; feh %s +image/png; feh %s +image/gif; feh %s -- cgit v1.2.3