[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] How to deal with HTML attachments?



On Wed, May 11, 2011 at 10:15 AM, Patrick Totzke
<patricktotzke@googlemail.com> wrote:
> Hi,
> I use a mime-hook like this for inline html:
> in ~/.sup/hooks$ cat mime-decode.rb :
>
>  case content_type
>  when "text/html"
>   `/usr/bin/lynx -dump '#{filename}'`
>  end
>
> To view html when hitting enter you could set your browser in ~/.mailcap:
>
>  text/html; firefox %s
>
> best,
> /p


The mime-decode.rb hook does the trick.

Still can't get sup to invoke w3m when I hit <enter> on HTML
attachments.  W3m is installed.  Something isn't hooked up correctly.
But oh well, we'll save that for the next guy.

Thanks, all.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel