sup - show html mails inline
This commit is contained in:
parent
b4efa29b84
commit
25dc131d44
1 changed files with 7 additions and 0 deletions
7
sup/hooks/mime-decode.rb
Normal file
7
sup/hooks/mime-decode.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue