sup - show html mails inline

This commit is contained in:
Felix Van der Jeugt 2015-03-11 17:58:16 +01:00
parent b4efa29b84
commit 25dc131d44

7
sup/hooks/mime-decode.rb Normal file
View File

@ -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