public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] mutt attachment viewing
@ 2010-11-08 10:11 José Romildo Malaquias
       [not found] ` <20101108144436.GA24814@depesz.com>
  0 siblings, 1 reply; 4+ messages in thread
From: José Romildo Malaquias @ 2010-11-08 10:11 UTC (permalink / raw
  To: gentoo-user, mutt-users

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?

Romildo



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: mutt attachment viewing
       [not found] ` <20101108144436.GA24814@depesz.com>
@ 2010-11-08 14:54   ` José Romildo Malaquias
       [not found]     ` <20101108173620.GA32148@depesz.com>
  0 siblings, 1 reply; 4+ messages in thread
From: José Romildo Malaquias @ 2010-11-08 14:54 UTC (permalink / raw
  To: gentoo-user, mutt-users

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.

Romildo



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: mutt attachment viewing
       [not found]     ` <20101108173620.GA32148@depesz.com>
@ 2010-11-08 18:15       ` José Romildo Malaquias
  2010-11-09  0:43         ` Willie Wong
  0 siblings, 1 reply; 4+ messages in thread
From: José Romildo Malaquias @ 2010-11-08 18:15 UTC (permalink / raw
  To: gentoo-user, mutt-users

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: mutt attachment viewing
  2010-11-08 18:15       ` José Romildo Malaquias
@ 2010-11-09  0:43         ` Willie Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Willie Wong @ 2010-11-09  0:43 UTC (permalink / raw
  To: gentoo-user

On Mon, Nov 08, 2010 at 04:15:39PM -0200, José Romildo Malaquias wrote:
> 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
> ------------------------------------------------------------

What if you use 

   links -dump %s

I think if you use a textmode browser you need to tell it to dump the
parsed output to stdout for mutt to be able to deal with it. 

Cheers, 

W
-- 
Willie W. Wong                                     wwong@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
         et vice versa   ~~~  I. Newton



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-09  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 10:11 [gentoo-user] mutt attachment viewing José Romildo Malaquias
     [not found] ` <20101108144436.GA24814@depesz.com>
2010-11-08 14:54   ` [gentoo-user] " José Romildo Malaquias
     [not found]     ` <20101108173620.GA32148@depesz.com>
2010-11-08 18:15       ` José Romildo Malaquias
2010-11-09  0:43         ` Willie Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox