On Mon, Nov 08, 2010 at 06:36:20PM +0100, hubert depesz lubaczewski wrote:
> On Mon, Nov 08, 2010 at 12:54:40PM -0200, José Romildo Malaquias wrote:
> > On Mon, Nov 08, 2010 at 03:44:37PM +0100, hubert depesz lubaczewski wrote:
> > > On Mon, Nov 08, 2010 at 08:11:30AM -0200, José Romildo Malaquias wrote:
> > > > The entries for text/html in /etc/mailcap and ~/.mutt/mailcap on my
> > > > ~amd64 Gentoo Linux system are
> > > > 
> > > > $ grep ^text/html ~/.mutt/mailcap /etc/mailcap
> > > > /home/romildo/.mutt/mailcap:text/html; links %s; nametemplate=%s.html; 
> > > > needsterminal; copiousoutput; description=HTMLText
> >                                                                            
> > ^^^^^^^^^^^^^
> > 
> > > > /etc/mailcap:text/html; /usr/bin/lynx -force_html '%s'; needsterminal; 
> > > > description=HTML Text; nametemplate=%s.html
> > > > /etc/mailcap:text/html; /usr/bin/lynx -dump -force_html '%s'; 
> > > > copiousoutput; description=HTML Text; nametemplate=%s.html
> > > > 
> > > > Although the entry for links does not have the field copiousoutput, it
> > > > is not being used for viewing an html attachment from the mutt
> > > > attachments menu, as it should be. Instead it is using the lynx entry. I
> > > > am using Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r1).
> > > > 
> > > > Any clues?
> > > 
> > > needsterminal?
> > 
> > This option is already in the mailcap entry.
> 
> *exactly*. remove it.

With the entry:
------------------------------------------------------------
text/html; links %s; nametemplate=%s.html
------------------------------------------------------------

it does not work:

[-- Autoview using /usr/bin/lynx -dump -force_html ''/tmp/mutt.html'' --]

With the entry:

------------------------------------------------------------
text/html; links %s; nametemplate=%s.html; needsterminal
------------------------------------------------------------

it also does not work:

[-- Autoview using /usr/bin/lynx -dump -force_html ''/tmp/mutt.html'' --]

With the entry:

------------------------------------------------------------
text/html; links %s; nametemplate=%s.html; copiousoutput
------------------------------------------------------------

it still does not work:

Invoking autoview command: links '/tmp/mutt.html'

is diplayed indefinitly in the status line, and I have to type Ctrl-C in
order to get rid of it. After that the screen is shown with garbage:

[-- Autoview using links '/tmp/mutt.html' --]
^[[?1001s^[[?1000h^[)0^[7^[[?1000h^[[1;1H^[[2J^[[1;1H
+^[[2;1H   Segue o cartaz da palestra com nova data.
[...]

So it seems that there is bug somewhere.

Romildo

Reply via email to