Using elinks to view html

2008-02-03 Thread Dave Wood
I have set up 2 binds:

macro   index   w |elinks\n 
macro   pager   w |elinks\n 

But when I use them elinks opens with a window asking what to do:

open save display etc

If I hit display I get the source code.

I previously used w3m for this and it worked ok, but I prefer to use elinks
for a browser and no longer have w3m installed. Any ideas on how to get
this working?

-- 
It's no surprise that things are so screwed up: everyone that knows how
to run a government is either driving taxicabs or cutting hair.
-- George Burns



Re: Using elinks to view html

2008-02-03 Thread Dave Wood
On (12:09 03/02/08), Dave Wood <[EMAIL PROTECTED]> put forth the proposition:
> On (11:29 03/02/08), Dave Wood <[EMAIL PROTECTED]> put forth the proposition:
> > I have set up 2 binds:
> > 
> > macro   index   w |elinks\n 
> > macro   pager   w |elinks\n 
> > 
> > But when I use them elinks opens with a window asking what to do:
> > 
> > open save display etc
> > 
> > If I hit display I get the source code.
> > 
> > I previously used w3m for this and it worked ok, but I prefer to use elinks
> > for a browser and no longer have w3m installed. Any ideas on how to get
> > this working?
> 
> Ok. I have a workaround. I made a bash script:
> 
> #!/bin/bash
> 
> cat " charset=utf-8\">" /dev/stdin >> tmp.html
> elinks tmp.html
> rm tmp.html

Better still:

#!/bin/bash

cat /dev/stdin >> tmp.html
elinks tmp.html
rm tmp.html

> 
> Then I pipe it to this.
> 
> Bit of a long-winded way so if anyone has any other ideas that would be
> helpfull.
> 
> Cheers
> 
> > 
> > -- 
> > It's no surprise that things are so screwed up: everyone that knows how
> > to run a government is either driving taxicabs or cutting hair.
> > -- George Burns
> 
> -- 
> When one woman was asked how long she had been going to symphony
> concerts, she paused to calculate and replied, "Forty-seven years --
> and I find I mind it less and less."
>   -- Louise Andrews Kent

-- 
Albert Einstein, when asked to describe radio, replied: "You see, wire
telegraph is a kind of a very, very long cat.  You pull his tail in New
York and his head is meowing in Los Angeles.  Do you understand this?
And radio operates exactly the same way: you send signals here, they
receive them there.  The only difference is that there is no cat."



Re: Using elinks to view html

2008-02-03 Thread Dave Wood
On (11:29 03/02/08), Dave Wood <[EMAIL PROTECTED]> put forth the proposition:
> I have set up 2 binds:
> 
> macro   index   w |elinks\n 
> macro   pager   w |elinks\n 
> 
> But when I use them elinks opens with a window asking what to do:
> 
> open save display etc
> 
> If I hit display I get the source code.
> 
> I previously used w3m for this and it worked ok, but I prefer to use elinks
> for a browser and no longer have w3m installed. Any ideas on how to get
> this working?

Ok. I have a workaround. I made a bash script:

#!/bin/bash

cat "" /dev/stdin >> tmp.html
elinks tmp.html
rm tmp.html

Then I pipe it to this.

Bit of a long-winded way so if anyone has any other ideas that would be
helpfull.

Cheers

> 
> -- 
> It's no surprise that things are so screwed up: everyone that knows how
> to run a government is either driving taxicabs or cutting hair.
>   -- George Burns

-- 
When one woman was asked how long she had been going to symphony
concerts, she paused to calculate and replied, "Forty-seven years --
and I find I mind it less and less."
-- Louise Andrews Kent



IMAP Folder Browser

2008-02-03 Thread Arthur Dent
Hello all,

I have just switched my setup from using mboxes to IMAP. I have created a
hierarchy of directories and sub-directories and I can indeed browse through
these using Mutt.

I have looked at the Mutt manual, and man muttrc, but I cannot see however any
way to customise the view when in the folder browser. All it shows me is a
folder number, the word IMAP (which seems superfluous), a big gap and the
folder or directory name.

There is no indication of the number of new messages (or indeed if there are
new messages at all) or any other useful information.

Setting folder_format seems to have no discernible effect.

Mutt is s customisable, surely there is a way to do so with IMAP folders?
 - or have I just missed something screamingly obvious (distinct possibility).

Thanks for any suggestions...

AD


pgpGfQIeYTlVx.pgp
Description: PGP signature


Re: Using elinks to view html

2008-02-03 Thread Michael Kjorling
On 3 Feb 2008 12:15 +, by [EMAIL PROTECTED] (Dave Wood):
>>> macro   pager   w |elinks\n 
> 
> Better still:
> 
> cat /dev/stdin >> tmp.html
> elinks tmp.html

How about elink's -force-html command line switch?

-- 
Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x(758F8749)BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



pgp5iZSK0ExV3.pgp
Description: PGP signature


Re: Using elinks to view html

2008-02-03 Thread Dave Wood
On (15:22 03/02/08), Michael Kjorling <[EMAIL PROTECTED]> put forth the 
proposition:
> On 3 Feb 2008 12:15 +, by [EMAIL PROTECTED] (Dave Wood):
> >>> macro   pager   w |elinks\n 
> > 
> > Better still:
> > 
> > cat /dev/stdin >> tmp.html
> > elinks tmp.html
> 
> How about elink's -force-html command line switch?

Ah didn't know about that one. Thanks ;)

> 
> -- 
> Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
> * . No bird soars too high if he soars with his own wings . *
> * ENCRYPTED email preferred -- OpenPGP key ID: 0x(758F8749)BDE9ADA6 *
> * ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *
> 


-- 
If at first you don't succeed, give up, no use being a damn fool.



viewing html emails with images

2008-02-03 Thread senator galt
Hi,

I often receive emails of type text/html. I've experimented displaying
them with links and firefox (with appropriate setting in my .mailcap).
Firefox seems to display the email text but not the images. Instead of
the images, I see grayish box which indicates the image wasn't
available. Is there a script to save the html content of the email
along with the attachments (images for eg) and display them properly
using firefox?

Thanks,
sen


Re: IMAP Folder Browser

2008-02-03 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday, February  3 at 01:37 PM, quoth Arthur Dent:
> I have looked at the Mutt manual, and man muttrc, but I cannot see 
> however any way to customise the view when in the folder browser. 

You were right the first time, it's $folder_format. Unfortunately, 
many of the printf sequences there don't mean anything when applied to 
IMAP, so mutt just ignores them.

 %C -> still works
 %d -> ignored (hard to calculate quickly with IMAP)
 %f -> still works
 %F -> becomes the string "IMAP  " or "IMAP +"
 %g -> ignored (does not apply without a filesystem)
 %l -> ignored (does not apply without a filesystem)
 %N -> finicky (I think it only works with cyrus IMAP)
 %s -> ignored (hard to calculate quickly with IMAP)
 %t -> still works
 %u -> ignored (does not apply without a filesystem)

> There is no indication of the number of new messages (or indeed if 
> there are new messages at all) or any other useful information.

There's no way to indicate the *number* of new messages even when 
you're not using IMAP, unfortunately. But %N should work in some 
cases. I forget why this is so finicky, but it has something to do 
with exactly how you calculate this about a folder in IMAP. Ask 
Brendan Cully for details.

As for "other useful information", what are you after?

~Kyle
- -- 
If any man come to me, and hate not his father, and mother, and wife, 
and children, and brethren, and sisters, yeah, and his own life also, 
he cannot be my disciple.
  -- Prince of Peace, Jesus Christ (Luke 14:26)
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHpnycBkIOoMqOI14RApz3AJ9ccgQkdwaFbETL01Ztbc0zuNGwfACfa7hx
sygz8mQCjwUv0QYWamndDu4=
=lvJQ
-END PGP SIGNATURE-