configuration/sup/hooks/mime-decode.rb

8 lines
186 B
Ruby
Raw Normal View History

2015-03-11 17:58:16 +01:00
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