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