* On  8 feb 2015, Philippe Delavalade wrote:

> 
> When I receive an attachment in html format, I hope it is read with lynx
> but in fact, I can see it as a txt file. In ~/.mailcp I have the line : 
> text/html; lynx -force_html '%s'; description=HTML Text; nametemplate=%s.html
> 
> I have also tried 
> text/html; /usr/bin/lynx -force_html %s; needsterminal; copiousoutput; 
> nametemplate=%s.html
> 
> But neither works.
> 
> In the mime.types file I have just the line
> text/html html htm shtml
> 

You need:

1- To define a viewer in mailcap for text/html attachments (you have
already done it)


2- 'auto_view' parameter in .muttrc:
        auto_view text/html

Read the section with this sentence
        "automatically viewing MIME attachments while in the pager"
in manual:
        http://www.mutt.org/doc/devel/manual.html#auto-view


3- Maybe you also need an 'alternative_order' parameter in .muttrc.



> attachments   +A */.*
> attachments   +I text/plain
> attachments   +I text/html
> 
> I don't understand what they mean and didn't find explanations in the manual.
> 

For 'attachments', look here:
        http://www.mutt.org/doc/devel/manual.html#ex-attach-count

--
J

Reply via email to