Re: Following URLs under Cygwin-mutt

2002-09-10 Thread Thomas Dickey

On Tue, Sep 10, 2002 at 08:01:33AM +0200, Thomas Baker wrote:
> It sounds like Gary Johnson's suggestion above (calling
> Mozilla from w3m) could do the trick, though I guess what
> I'd really like to do is hand the message off immediately to,
> say, the mailer in Netscape or Mozilla.

or lynx - depending.  I noticed the 'M" feature in w3m last year and added
comparable functionality to lynx - repeating the 'external' viewer lines
in lynx.cfg makes it display a menu when invoking the external viewer.
For example

EXTERNAL:ftp:w3m %s:TRUE
EXTERNAL:file:w3m %s:TRUE
EXTERNAL:http:w3m %s:TRUE

EXTERNAL:ftp:netscape %s:TRUE
EXTERNAL:file:netscape %s:TRUE
EXTERNAL:http:netscape %s:TRUE


-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net



Re: Following URLs under Cygwin-mutt

2002-09-10 Thread Thomas Baker

On Mon, Sep 09, 2002 at 11:45:27PM -0700, JeeBak Kim wrote:
> * Thomas Baker ([EMAIL PROTECTED]) [020909 23:03]:
> > I have used various workarounds -- at one extreme, switch to
> > Mozilla and re-type the URL -- but this is really inefficient
> > if the task is to click my way through, say, a blog bulletin
> > from Red Rock Eater (with lots of URLs).
> 
> Hmm... does copy and paste not work in your cygwin environment?
> Are you using the cygwin dos console?  You might want to install
> the rxvt cygwin package.  It's much more friendlier ;).

Yes, I do have this, and it works, but it comes up with
a small font, default screen colors, doesn't seem to read
my bash-environ settings, etc.  Is all of this explained
somewhere in one place (a book about XWindows??), or do you
have to chase down the solutions to these various problems
one-by-one through the man pages...?  This is what has kept
me using the cygwin dos console, which looks terrific since
I customized the colors and fonts by right-clicking for the
WIN2000 window properties.

>   ftp://ftp.mutt.org/mutt/contrib/urlview-0.9.tar.gz
> 
> and that you couldn't use it in cygwin for some reason.  I've
> compiled it successfully in cygwin and it works perfectly as it
> does in unix.  After compiling and installing urlview in your

As a non-programmer, I have not had good experience with
compiling, but this one did compile right out of the box.
Thanks!!

> I hope this helps!

This is a huge leap forward, many thanks!  It's not quite
ideal, in my opinion, because there are extra keystrokes
involved in scrolling down and finding the URL again out
of its original context.  This is not a problem if there
are just three or four URLs, but looks like it could get a
bit tedious if working through a mail message that mentions
60 or so emails, such as a Red Rock Eater bulletin.  Also,
Netscape or Mozilla mail would show an already-clicked-on
link in a different color, and that seems not to be the case
with urlview.

But I'm not complaining... -- this is worlds better than what
I have been doing!

Tom

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-1408



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread JeeBak Kim

Hi Thomas,

* Thomas Baker ([EMAIL PROTECTED]) [020909 23:03]:
[snip]
> I have used various workarounds -- at one extreme, switch to
> Mozilla and re-type the URL -- but this is really inefficient
> if the task is to click my way through, say, a blog bulletin
> from Red Rock Eater (with lots of URLs).

Hmm... does copy and paste not work in your cygwin environment?
Are you using the cygwin dos console?  You might want to install
the rxvt cygwin package.  It's much more friendlier ;).

> It sounds like Gary Johnson's suggestion above (calling
> Mozilla from w3m) could do the trick, though I guess what
> I'd really like to do is hand the message off immediately to,
> say, the mailer in Netscape or Mozilla.

I refrained from commenting until other more experienced people
responded first.  If you want to use mozilla in Windows to visit
the embedded urls in your text e-mail, you had the answer in
your first post in this thread.  You mentioned urlview:

  ftp://ftp.mutt.org/mutt/contrib/urlview-0.9.tar.gz

and that you couldn't use it in cygwin for some reason.  I've
compiled it successfully in cygwin and it works perfectly as it
does in unix.  After compiling and installing urlview in your
cygwin environment, add lines in your $HOME/.muttrc, example
from http://www.math.fu-berlin.de/~guckes/setup/muttrc.forall

  macro index ,\Cb |urlview\n "Extract a URL, and queue for later download"
  macro pager ,\Cb |urlview\n "Extract a URL, and queue for later download"

and finally create a file called $HOME/.urlview with:

  #
  # Sample urlview(1) configuration file
  #

  # regular expression to use to match URLs
  REGEXP ht|f)tp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">]

  # command to invoke for selected URL
  COMMAND "/cygdrive/c/Program Files/mozilla.org/Mozilla/mozilla.exe"

  #COMMAND url_handler.sh
  #COMMAND netscape -remote 'openURL(%s)

Note the COMMAND path to mozilla is from a default install in
Windows.  Change this to match your setup.

I hope this helps!

-- jbkim



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Thomas Baker

On Mon, Sep 09, 2002 at 03:22:19PM -0400, Thomas Dickey wrote:
> On Mon, Sep 09, 2002 at 09:06:24PM +0200, Thomas Baker wrote:
> > In my admittedly limited experience with text browsers,
> > alot of the links came up with unhelpful results like like
> > just "Frame 1" and "Frame 2", or exited with an error message
> > before showing anything.  One could curse those Web editors for
> > making such unfriendly pages, but there are alot of pages like
> > that out there and I guess we have to live with them.  I'd be
> > willing to stick it out with text browsers and workarounds
> > if I knew that others really do live with them comfortably.
> 
> I haven't noticed any html email with frames.  (Most html email that I do
> see is spam, though - and I don't look closely at that).

I haven't either.  The problem for me is not HTML email,
it's following the URLs cited in text email and viewing them
in a graphical browser such as Mozilla or Internet Explorer.
I have used various workarounds -- at one extreme, switch to
Mozilla and re-type the URL -- but this is really inefficient
if the task is to click my way through, say, a blog bulletin
from Red Rock Eater (with lots of URLs).

It sounds like Gary Johnson's suggestion above (calling
Mozilla from w3m) could do the trick, though I guess what
I'd really like to do is hand the message off immediately to,
say, the mailer in Netscape or Mozilla.

Tom

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-1408



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Thomas Dickey

On Mon, Sep 09, 2002 at 09:06:24PM +0200, Thomas Baker wrote:
 
> In my admittedly limited experience with text browsers,
> alot of the links came up with unhelpful results like like
> just "Frame 1" and "Frame 2", or exited with an error message
> before showing anything.  One could curse those Web editors for
> making such unfriendly pages, but there are alot of pages like
> that out there and I guess we have to live with them.  I'd be
> willing to stick it out with text browsers and workarounds
> if I knew that others really do live with them comfortably.

I haven't noticed any html email with frames.  (Most html email that I do
see is spam, though - and I don't look closely at that).

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Thomas Baker

On Mon, Sep 09, 2002 at 11:05:31AM -0700, Gary Johnson wrote:
> > > It's a little awkward, but you can do this with w3m.  If you use 'M'
> > > instead of Enter to follow a link, w3m will invoke an external browser
> > > to view the link.  You can define this browser in the "External Browser"
> > > entry in the Option Setting Panel ('o').
> > 
> > lynx (and I assume links) support external browsers as well.  But it's
> > not clear from the description what/why w3m or lynx were not able to
> > satisfy his needs.
> 
> True.  I did assume that "alot of the links do not display at all in w3m
> and lynx" followed by the question about others finding "console-based
> options to be satisfactory" meant that the pages to which those links
> referred did not render well in a text browser.  I suppose I should have
> stated that assumption in my reply.

In my admittedly limited experience with text browsers,
alot of the links came up with unhelpful results like like
just "Frame 1" and "Frame 2", or exited with an error message
before showing anything.  One could curse those Web editors for
making such unfriendly pages, but there are alot of pages like
that out there and I guess we have to live with them.  I'd be
willing to stick it out with text browsers and workarounds
if I knew that others really do live with them comfortably.

In contrast, the one thing I did like about Netscape mail
back when I was using it was that it would recognize the URLs
in plain-text mail and make them clickable, so you could
immediately call up the Web page and see it the way it was
intended to be seen.  I could never go back to Netscape
mail for other reasons, but this seems like the sort of
functionality that one shouldn't have to sacrifice under mutt.

Tom

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-1408



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Gary Johnson

On Mon, Sep 09, 2002 at 01:51:27PM -0400, Thomas E. Dickey wrote:
> On Mon, 9 Sep 2002, Gary Johnson wrote:
> 
> > On Mon, Sep 09, 2002 at 01:16:16PM +0200, Thomas Baker wrote:
> > > I use Mutt 1.4i in Cygwin so do not have access to Urlview.
> > > Previous mail to this list regarding alternatives to Urlview
> > > have recommended w3m and lynx, and I have had some success
> > > putting these in mailcap.  However, alot of the links do not
> > > display at all in w3m and lynx.
> >
> > > Is it possible to direct mutt to view plain-text mail in a
> > > non-console browser such as Mozilla?  Or have others found
> > > console-based options to be satisfactory?
> >
> > It's a little awkward, but you can do this with w3m.  If you use 'M'
> > instead of Enter to follow a link, w3m will invoke an external browser
> > to view the link.  You can define this browser in the "External Browser"
> > entry in the Option Setting Panel ('o').
> 
> lynx (and I assume links) support external browsers as well.  But it's
> not clear from the description what/why w3m or lynx were not able to
> satisfy his needs.

True.  I did assume that "alot of the links do not display at all in w3m
and lynx" followed by the question about others finding "console-based
options to be satisfactory" meant that the pages to which those links
referred did not render well in a text browser.  I suppose I should have
stated that assumption in my reply.

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Thomas E. Dickey

On Mon, 9 Sep 2002, Gary Johnson wrote:

> On Mon, Sep 09, 2002 at 01:16:16PM +0200, Thomas Baker wrote:
> > I use Mutt 1.4i in Cygwin so do not have access to Urlview.
> > Previous mail to this list regarding alternatives to Urlview
> > have recommended w3m and lynx, and I have had some success
> > putting these in mailcap.  However, alot of the links do not
> > display at all in w3m and lynx.
>
> > Is it possible to direct mutt to view plain-text mail in a
> > non-console browser such as Mozilla?  Or have others found
> > console-based options to be satisfactory?
>
> It's a little awkward, but you can do this with w3m.  If you use 'M'
> instead of Enter to follow a link, w3m will invoke an external browser
> to view the link.  You can define this browser in the "External Browser"
> entry in the Option Setting Panel ('o').

lynx (and I assume links) support external browsers as well.  But it's
not clear from the description what/why w3m or lynx were not able to
satisfy his needs.

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net




Re: Following URLs under Cygwin-mutt

2002-09-09 Thread Gary Johnson

On Mon, Sep 09, 2002 at 01:16:16PM +0200, Thomas Baker wrote:
> I use Mutt 1.4i in Cygwin so do not have access to Urlview.
> Previous mail to this list regarding alternatives to Urlview
> have recommended w3m and lynx, and I have had some success
> putting these in mailcap.  However, alot of the links do not
> display at all in w3m and lynx.  

> Is it possible to direct mutt to view plain-text mail in a
> non-console browser such as Mozilla?  Or have others found 
> console-based options to be satisfactory?

It's a little awkward, but you can do this with w3m.  If you use 'M'
instead of Enter to follow a link, w3m will invoke an external browser
to view the link.  You can define this browser in the "External Browser"
entry in the Option Setting Panel ('o').

HTH,
Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |