Re: Macro to read in external browser

2010-10-25 Thread Cristopher Thomas
On Tue, Oct 26, 2010 at 04:01, Mike Hollis  wrote:
> On Tue, Oct 26, 2010 at 01:51:02AM +0300, Cristopher Thomas wrote:
>>
>> This is great.  I didn't realize that adding a text/html entry in
>> addition to my autoview entry would allow me to do this.  Thanks!
>
> What does autoview do ?

By autoview, I mean the mailcap entry that is called by mutt when
'auto_view text/html' is set in .muttrc.  For me, this line is:

text/html;  lynx -dump %s; nametemplate=%s.html; copiousoutput


Re: Macro to read in external browser

2010-10-25 Thread Mike Hollis
On Tue, Oct 26, 2010 at 01:51:02AM +0300, Cristopher Thomas wrote:
> 
> This is great.  I didn't realize that adding a text/html entry in
> addition to my autoview entry would allow me to do this.  Thanks!
> 
> --
> Cris

What does autoview do ? I had used entries to view attached graphics
but have never thought about using links or links -g to view html
attachments.So I tried:

text/html; links -g %s

and it came up toggled to text mode but:

text/html; links -g -force-html %s

toggled it to html. Neat !! Another victory in the battle of
bloat.

--- Mike Hollis 



Re: Macro to read in external browser

2010-10-25 Thread Cristopher Thomas
On Mon, Oct 25, 2010 at 13:40, Jamie Paul Griffin
 wrote:
>> I have messages I get from a couple different sources that aren't
>> rendered well by text only browsers.  I'd like to set a macro that I can
>> use to open these messages using links2 -g, but I'm not having a lot of
>> luck.  Does anyone have a setup like this they wouldn't mind sharing?
>
> Would't adding an appropriate text/html entry in your ~/.mailcap file work, 
> and then using the 'v' key to select the text/html part of the message and 
> open it with your chosen program.

This is great.  I didn't realize that adding a text/html entry in
addition to my autoview entry would allow me to do this.  Thanks!

--
Cris


Re: Macro to read in external browser

2010-10-25 Thread Mike Hollis
On Mon, Oct 25, 2010 at 11:40:53AM +0100, Jamie Paul Griffin wrote:
> > I have messages I get from a couple different sources that aren't
> > rendered well by text only browsers.  I'd like to set a macro that I can
> > use to open these messages using links2 -g, but I'm not having a lot of
> > luck.  Does anyone have a setup like this they wouldn't mind sharing?
>  
> Wouldn't adding an appropriate text/html entry in your ~/.mailcap file work, 
> and then using the 'v' key to select the text/html part of the message and 
> open it with your chosen program.
> -- 
> 
>Jamie Paul Griffin
>GPG Key: DF52D9B0

You can also view bitmapped files such as attached pictures with links 
-g an an appropriate mailcap entry.

Mike Hollis 


Re: Macro to read in external browser

2010-10-25 Thread Jamie Paul Griffin
> I have messages I get from a couple different sources that aren't
> rendered well by text only browsers.  I'd like to set a macro that I can
> use to open these messages using links2 -g, but I'm not having a lot of
> luck.  Does anyone have a setup like this they wouldn't mind sharing?
 
Would't adding an appropriate text/html entry in your ~/.mailcap file work, and 
then using the 'v' key to select the text/html part of the message and open it 
with your chosen program.
-- 

   Jamie Paul Griffin
   GPG Key: DF52D9B0


pgpYtRO2kLj3h.pgp
Description: PGP signature


Macro to read in external browser

2010-10-25 Thread Cristopher Thomas
I have messages I get from a couple different sources that aren't
rendered well by text only browsers.  I'd like to set a macro that I can
use to open these messages using links2 -g, but I'm not having a lot of
luck.  Does anyone have a setup like this they wouldn't mind sharing?

-- 
Cris