FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 11-08-2010, 01:54 PM
Josť Romildo Malaquias
 
Default mutt attachment viewing

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
 
Old 11-08-2010, 05:15 PM
Josť Romildo Malaquias
 
Default mutt attachment viewing

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
 
Old 11-08-2010, 11:43 PM
Willie Wong
 
Default mutt attachment viewing

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
 

Thread Tools




All times are GMT. The time now is 10:22 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org