On Sun, 8 Sep 2002 07:07:31 UTC, [EMAIL PROTECTED] (Christoph 
Wingender) wrote:

> On Sat, 7 Sep 2002 22:43:28 UTC, "Andreas Ludwig" <[EMAIL PROTECTED]> 
> wrote:
> 
> > Hi,
> > 
> > didn't find this in bugzilla, so might be an OS/2 problem only: I have
> > PMMail/2 set up as my mail client and use PMMailMozilla 1.10 to send mailto:
> > URLs to PMMail. In Moz/2 1.0 GA everything worked just fine. In 1.1 GA,
> > however the URL gets cut by one character at the beginning and at the end.
> > 
> > Can someone reproduce this?
> 
> Yes, I have the same problem.
> 

I did to, and it's a bug with PMMailMozilla.

The info.txt says to put the following line into prefs.js:

     user_pref("applications.mailto.parameters", "\"%url%\"");

When you click on a mailTo link, the parameter passed into PMMail.cmd 
is "[EMAIL PROTECTED]" including the double quotes (and maybe some
extra blanks).  PMMail.cmd has the following lines:


/* delete leeding and traling spaces */
url = Strip(url)

/* delete the first and last two characters (\") */
url = Right(url, Length(url) -2)
url = Left(url, Length(url) - 2)

But, there is only one character to strip off.  I assume the '\"' in 
the prefs.js line is to escape the double quote so it doesn't get 
interpreted as a delimiter.  

So, the fix is either change the line so it does put two characters 
in.  Or, modify the two lines from PMMail.cmd above to have a 1 
instead of 2. This is what I did.

Alternatively, you could replace both lines with:

url = Strip(url, , '"')   /* That's: single quote, double quote, 
single quote */

-- 
David Forrester
davidfor at internode dot on dot net
http://www.os2world.com/djfos2

Reply via email to