Subject: Pine 4.03 URL quoting problem

From: Brett Eldridge <[email-masked]>
Date: Fri, 4 Sep 1998 10:43:06 -0700 (PDT)

I noticed in the Release Notes for 4.03 the following:

* URL Viewers variable: explicit URL quoting is no longer needed

I built 4.03 (for Linux) and am now trying to regain the automatic URL
launching capability I once had. :(

Here is what I used to have for url-viewers:

url-viewers=_TEST("test -n '${DISPLAY}'")_ "/usr/local/netscape/netscape
-remote 'openURL(_URL_)'"

Everything worked great. So, for 4.03, since explicit URL quoting isn't
required, I tried a few different variations, with no success. So, how do
we now pass Netscape the _URL_ value? Here is the syntax for -remote
openURL:

      openURL ( ) 
            Prompts for a URL with a dialog box. 
      openURL (URL) 
            Opens the specified document without prompting. 
      openURL (URL, new-window) 
            Create a new window displaying the the specified document. 

- brett

-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Michael Thomas Cope <[email-masked]>
Date: Fri, 4 Sep 1998 12:17:57 -0700 (PDT)

>             Create a new window displaying the the specified document. 
The following still works for me with 4.03 (Solaris 2.6 build gs5)
url-viewers=_TEST("test -n'${DISPLAY}'")_"\
/usr/local/pkg/netscape-4.06/bin/netscape\
-remote 'openURL(_URL_,new-window)'",
/usr/local/bin/lynx

Which looks a lot like what you have.  I have on the other hand had
problems with changing the url-viewers config and having it work within
the same Pine session.
-Mike

-- 
Michael Cope: Harvey Mudd College '00; Armand Hammer UWC '96
E-mail: [email-masked]

---

From: Brett Eldridge <[email-masked]>
Date: Fri, 4 Sep 1998 12:43:05 -0700 (PDT)

> problems with changing the url-viewers config and having it work within

Hmmm...I'm geting closer to understanding. When I go to launch the URL,
pine presents me with the following message:

View selected URL "http://www.news.com/Dispatch/Advertis..."?   

If I say yes, it actually sends the entire URL including the " " to
Netscape. I get the error from Netscape (also v 4.06):

Netscape is unable to locate the server:
"http:
The server does not have a DNS entry.

In the URL window, sure enough, is the URL with quotes:

"http://www.news.com/Dispatch/Advertising/amex.html?dd.cn.amex"

- brett

---

From: Jeff Goswick <[email-masked]>
Date: Fri, 4 Sep 1998 18:23:38 -0600 (MDT)

I'm getting the same behaviour.  My setting for url-viewers (including ") is:

   "/usr/local/bin/netscape -noraise -remote 'openURL ( _URL_ , new-window)'"

This worked fine in 4.01 (hpux 10, prebuilt binary), but in 4.03 netscape 
responds with 'No such host "http' (I added the single quotes).

It looks like pine is quoting the already quoted URL from the HTML?  Pine
should only add quotes if the potential URL isn't already quoted, it seems.

Sometimes unquoted references are being loaded as httpwww... some how
the :// is getting stripped off.  Other times they seem to work fine.

Regards,
Jeff

On Fri, 4 Sep 1998, Brett Eldridge wrote:

> Date: Fri, 4 Sep 1998 12:43:05 -0700 (PDT)
> From: Brett Eldridge <[email-masked]>
> To: Pine Discussion Forum <[email-masked]>
> Subject: Re: Pine 4.03 URL quoting problem
>