From 461ba78442c1adeabe01059a57e36b429beffc71 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 20 Jun 2017 17:02:06 +0200 Subject: fix --- by_os/Darwin/mutt/.mutt/mailcap | 6 ++++++ by_os/Darwin/mutt/.mutt/open-in-safari | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 by_os/Darwin/mutt/.mutt/mailcap create mode 100755 by_os/Darwin/mutt/.mutt/open-in-safari (limited to 'by_os/Darwin/mutt') diff --git a/by_os/Darwin/mutt/.mutt/mailcap b/by_os/Darwin/mutt/.mutt/mailcap new file mode 100644 index 0000000..a319c8c --- /dev/null +++ b/by_os/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_os/Darwin/mutt/.mutt/open-in-safari b/by_os/Darwin/mutt/.mutt/open-in-safari new file mode 100755 index 0000000..0e122f5 --- /dev/null +++ b/by_os/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"; +) & + -- cgit v1.2.3