From 25dc131d44c8fc8600b936de6183b17ddd9cbe15 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 11 Mar 2015 17:58:16 +0100 Subject: [PATCH] sup - show html mails inline --- sup/hooks/mime-decode.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sup/hooks/mime-decode.rb diff --git a/sup/hooks/mime-decode.rb b/sup/hooks/mime-decode.rb new file mode 100644 index 0000000..ab06463 --- /dev/null +++ b/sup/hooks/mime-decode.rb @@ -0,0 +1,7 @@ +require 'shellwords' +unless sibling_types.member? "text/plain" + case content_type + when "text/html" + `/usr/bin/w3m -dump -T #{content_type} #{Shellwords.escape filename}` + end +end