Re: how to read http mails in mutt mail reader (vim)?

2007-11-12 Thread cls
[This message has also been posted to linux.debian.user.]
In article [EMAIL PROTECTED], s. keeling wrote:
 hce [EMAIL PROTECTED]:
 
  I've just installed mutt in Debian, one problem is there are some
  mails from news lists with HTTP format, it was fine when I use Mozilla
  mail reader, but with mutt and vim, I could not read the HTTP format
  mails. One solution I can think of is to use lynx, but I don't know
  how to config mutt with lynx. How do you handle this issue?

 mutt needs to be trained.  You could tell it to use urlview via macro,
 but I see no need for it.  Install w3m, and it'll do everything you
 need.

 In your ~/.mailcap, add:

   multipart/alternative ;  /usr/bin/w3m -dump %s; copiousoutput; 
 nametemplate=%s.html
   multipart/related ;  /usr/bin/w3m -dump %s; copiousoutput; 
 nametemplate=%s.html
   text/html ;  /usr/bin/w3m -T text/html -dump %s ; copiousoutput

 then tell mutt this (~/.muttrc):

   macro index \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a 
 message'
   macro pager \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a 
 message'


Well that's awfully complicated.  Why not just pipe the message
into metamail?  It'll bust a multipart message into parts and
run whatever it needs on each part.  In mailx, pi metamail
In Mutt, perhaps | metamail
Etch came with an /etc/mailcap that was pretty sensible, didn't
need any editing.  I went back and forth with whether I wanted
to display cruft-o-messages with Iceape or Lynx.  The default
was Lynx.


Cameron


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-07 Thread s. keeling
hce [EMAIL PROTECTED]:
 
  I've just installed mutt in Debian, one problem is there are some
  mails from news lists with HTTP format, it was fine when I use Mozilla
  mail reader, but with mutt and vim, I could not read the HTTP format
  mails. One solution I can think of is to use lynx, but I don't know
  how to config mutt with lynx. How do you handle this issue?

mutt needs to be trained.  You could tell it to use urlview via macro,
but I see no need for it.  Install w3m, and it'll do everything you
need.

In your ~/.mailcap, add:

  multipart/alternative ;  /usr/bin/w3m -dump %s; copiousoutput; 
nametemplate=%s.html
  multipart/related ;  /usr/bin/w3m -dump %s; copiousoutput; 
nametemplate=%s.html
  text/html ;  /usr/bin/w3m -T text/html -dump %s ; copiousoutput

then tell mutt this (~/.muttrc):

  macro index \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a 
message'
  macro pager \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a 
message'

Then, CTRL-b invokes w3m on the mail you're reading, : highlights
links, and TAB moves to the next one, and Enter goes to that link.  To
configure w3m, type o when it's running.  Hit q and you're back in
mutt.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-05 Thread Andrei Popescu
On Sun, Nov 04, 2007 at 05:33:45PM +0530, Kumar Appaiah wrote:
 On Sun, Nov 04, 2007 at 08:40:12AM +, Andy Smith wrote:
  On Sun, Nov 04, 2007 at 07:31:53PM +1100, hce wrote:
   I've just installed mutt in Debian, one problem is there are some
   mails from news lists with HTTP format, it was fine when I use Mozilla
   mail reader, but with mutt and vim, I could not read the HTTP format
   mails. One solution I can think of is to use lynx, but I don't know
   how to config mutt with lynx. How do you handle this issue?
  
  If you mean HTML, there was a post to Planet Debian on this subject
  just yesterday:
 
 I think the OP means HTTP links, i.e. URLs in mails.
 
 Since you're on Debian, I'd suggest apt-get install urlview and add
 the urlview and add the config to your muttrc like the one in present
 in /usr/share/doc/mutt/examples/sample.muttrc.gz, which is:
 
 macro index \cb pipe-message urlviewEnter   # simulate the old 
 browse-url function

I don't think this is necessary. My /etc/Muttrc already contains this:

# simulate the old url menu
macro index,pager,attach,compose \cb \
enter-command set my_pipe_decode=\$pipe_decode pipe_decodeEnter\
pipe-message urlviewEnter\
enter-command set pipe_decode=\$my_pipe_decode; unset my_pipe_decodeEnter \
call urlview to extract URLs out of a message

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: how to read http mails in mutt mail reader (vim)?

2007-11-05 Thread Kumar Appaiah
On Mon, Nov 05, 2007 at 11:03:55AM +0200, Andrei Popescu wrote:
  Since you're on Debian, I'd suggest apt-get install urlview and add
  the urlview and add the config to your muttrc like the one in present
  in /usr/share/doc/mutt/examples/sample.muttrc.gz, which is:
  
  macro index \cb pipe-message urlviewEnter # simulate the old 
  browse-url function
 
 I don't think this is necessary. My /etc/Muttrc already contains this:
 
 # simulate the old url menu
 macro index,pager,attach,compose \cb \
 enter-command set my_pipe_decode=\$pipe_decode pipe_decodeEnter\
 pipe-message urlviewEnter\
 enter-command set pipe_decode=\$my_pipe_decode; unset 
 my_pipe_decodeEnter \
 call urlview to extract URLs out of a message

You are right. Thanks for pointing this out.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-05 Thread Douglas A. Tutty
On Sun, Nov 04, 2007 at 07:31:53PM +1100, hce wrote:
 I've just installed mutt in Debian, one problem is there are some
 mails from news lists with HTTP format, it was fine when I use Mozilla
 mail reader, but with mutt and vim, I could not read the HTTP format
 mails. One solution I can think of is to use lynx, but I don't know
 how to config mutt with lynx. How do you handle this issue?
 

If you mean that the mail content is in html, if you hit 'v' you get the
list of attachments.  Arrow down to the html version and hit enter.
Mutt should start up lynx for you (if you're in a VT) or whatever
browser if you're in X (never tried that).

If you mean that plain-text emails include http://... type references,
just open up another VT and fire up lynx.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-05 Thread B. L. Jilek
Hi hce!

On Mon, 05 Nov 2007, hce wrote:

 Thanks Andy and other responses. It is a good solution although I wish
 I could use the vim to read HTML with ability to click the URL links
 like lynx (asking too much :-)).
 
 Thank you.
 
 Jim

I'm not a Mutt expert but take a look at Roland Rosenfeld's muttrc and
mailcap files here: http://www.spinnaker.de/mutt/

His setup displays HTML mail with w3m automatically in the Mutt
reading pane.

-- 
 B. L. Jilek|  Debian Linux!
 [EMAIL PROTECTED]  |  GPG key: 11A5D1A4




signature.asc
Description: Digital signature


how to read http mails in mutt mail reader (vim)?

2007-11-04 Thread hce
Hi,

I've just installed mutt in Debian, one problem is there are some
mails from news lists with HTTP format, it was fine when I use Mozilla
mail reader, but with mutt and vim, I could not read the HTTP format
mails. One solution I can think of is to use lynx, but I don't know
how to config mutt with lynx. How do you handle this issue?

Thank you.

Jim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-04 Thread Andy Smith
Hi Jim,

On Sun, Nov 04, 2007 at 07:31:53PM +1100, hce wrote:
 I've just installed mutt in Debian, one problem is there are some
 mails from news lists with HTTP format, it was fine when I use Mozilla
 mail reader, but with mutt and vim, I could not read the HTTP format
 mails. One solution I can think of is to use lynx, but I don't know
 how to config mutt with lynx. How do you handle this issue?

If you mean HTML, there was a post to Planet Debian on this subject
just yesterday:

http://cord.de/blog/index.php?entry=entry071103-141719

I do it that way too.

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB


signature.asc
Description: Digital signature


Re: how to read http mails in mutt mail reader (vim)?

2007-11-04 Thread Kumar Appaiah
On Sun, Nov 04, 2007 at 08:40:12AM +, Andy Smith wrote:
 On Sun, Nov 04, 2007 at 07:31:53PM +1100, hce wrote:
  I've just installed mutt in Debian, one problem is there are some
  mails from news lists with HTTP format, it was fine when I use Mozilla
  mail reader, but with mutt and vim, I could not read the HTTP format
  mails. One solution I can think of is to use lynx, but I don't know
  how to config mutt with lynx. How do you handle this issue?
 
 If you mean HTML, there was a post to Planet Debian on this subject
 just yesterday:

I think the OP means HTTP links, i.e. URLs in mails.

Since you're on Debian, I'd suggest apt-get install urlview and add
the urlview and add the config to your muttrc like the one in present
in /usr/share/doc/mutt/examples/sample.muttrc.gz, which is:

macro index \cb pipe-message urlviewEnter # simulate the old browse-url 
function

HTH.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-04 Thread hce
Thanks Andy and other responses. It is a good solution although I wish
I could use the vim to read HTML with ability to click the URL links
like lynx (asking too much :-)).

Thank you.

Jim

On 11/4/07, Andy Smith [EMAIL PROTECTED] wrote:
 Hi Jim,

 On Sun, Nov 04, 2007 at 07:31:53PM +1100, hce wrote:
  I've just installed mutt in Debian, one problem is there are some
  mails from news lists with HTTP format, it was fine when I use Mozilla
  mail reader, but with mutt and vim, I could not read the HTTP format
  mails. One solution I can think of is to use lynx, but I don't know
  how to config mutt with lynx. How do you handle this issue?

 If you mean HTML, there was a post to Planet Debian on this subject
 just yesterday:

 http://cord.de/blog/index.php?entry=entry071103-141719

 I do it that way too.

 Cheers,
 Andy

 --
 http://bitfolk.com/ -- No-nonsense VPS hosting
 Encrypted mail welcome - keyid 0x604DE5DB

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFHLYVsIJm2TL8VSQsRAuHUAJ9PRZp1QI28SS9epCTl90qoss7gHgCgi1ZC
 I/aRLb3W5cVPXAqrhHMus3M=
 =lE+W
 -END PGP SIGNATURE-




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to read http mails in mutt mail reader (vim)?

2007-11-04 Thread Wayne Topa
hce([EMAIL PROTECTED]) is reported to have said:

 Thanks Andy and other responses. It is a good solution although I wish
 I could use the vim to read HTML with ability to click the URL links
 like lynx (asking too much :-)).
 

No, you are not asking too much.

Read the vim manual section on mailcap.  Then setup your own .mailcap
file and then you can read HTML mail in mutt.

To be able to click on a URL when you need to install and set up the
urlview package.

W

-- 
Programmers don't die, they just GOSUB without RETURN
___


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]