Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pmmail as email client in Mozilla

8 views
Skip to first unread message

Oliver Poggensee

unread,
Jun 4, 2002, 3:27:56 PM6/4/02
to
Hi

I try to use Pmmail instead of the Mozilla email client.
I can start the pmmail "new message " window with the right email
address. I have problem if the mailto: link contains more parameters
like subject and body, the only parameter I can catch is the email
address.
This is what I have done:

Using a rexx script which is started by Mozilla to start Pmmail in the
right manner.

/* script to start Pmmail from Mozilla via the mailto: link
*/
Parse arg emailaddress
program = "H:\online\pmmail\pmmail.exe"
defaultAcount = "opweb"
startstring = program "/s" defaultAcount "mailto:" || emailaddress
startstring
return

I have also added following lines to prefs.js
user_pref("applications.mailto", "H:\\temp\\pmmail.cmd");
user_pref("applications.mailto.host", "%username%@%host%");
user_pref("network.protocol-handler.external.mailto", true);

Does anyone know what I have to add to the prefs.js file so that
Mozilla is also passing the other possible parameters (cc, bcc,
subject and body) to my script?

Thanks
Oliver

Michael Kaply

unread,
Jun 4, 2002, 3:48:35 PM6/4/02
to

Oliver Poggensee wrote:

> Does anyone know what I have to add to the prefs.js file so that
> Mozilla is also passing the other possible parameters (cc, bcc,
> subject and body) to my script?

Sure

Do it like this:

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

Then you will get the ENTIRE url with nothing parsed.

You can parse it as you want to.

Mike

Oliver Poggensee

unread,
Jun 5, 2002, 1:16:27 PM6/5/02
to
On Tue, 4 Jun 2002 19:48:35 UTC, Michael Kaply <NOS...@NOSPAM.com>
wrote:

> Do it like this:
>
> user_pref("applications.mailto.parameters", "%url%");
>
> Then you will get the ENTIRE url with nothing parsed.
>

Thanks Mike.

For everyone who like to use PmMail instead of the Mozilla mailer, can
get the script and doku from my homepage.
http://www.opweb.de

Oliver

frei...@nospam-syntheticdimension.net

unread,
Jun 5, 2002, 4:38:26 PM6/5/02
to
Okay, final question on this matter (heh, maybe) -- is there any way for
Mozilla to send its current profile name along with the data it sends to
the external mail handler program? For instance I have 3 accounts
created in PMMail. I also have 3 Mozilla profiles. I do not want all
three of them to send "from" the same PMMail account. Suggestions?

Thanks!
Don Eitner

Oliver Poggensee

unread,
Jun 5, 2002, 5:26:28 PM6/5/02
to
On Wed, 5 Jun 2002 20:38:26 UTC,
frei...@nospam-syntheticdimension.net wrote:

> Okay, final question on this matter (heh, maybe) -- is there any way for
> Mozilla to send its current profile name along with the data it sends to
> the external mail handler program? For instance I have 3 accounts
> created in PMMail. I also have 3 Mozilla profiles. I do not want all
> three of them to send "from" the same PMMail account. Suggestions?
>
> Thanks!
> Don Eitner
>

As far as I know uses every account it's own prefs.js file! Change the
prefs.js files from

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

to
user_pref("applications.mailto.parameters", "\"%url%\" Profilname");
Profilname must contain the name of the Pmmail profile you want to use
for the Mozilla profile the prefs.js file belongs to.

Second, you have to change the first few lines of the Pmmail.cmd
script

Parse arg url /* Get the argument */
Parse Var url . '\"' url '\"' defaultAcount

part. = "" /* All part.* variables are now empty */
url = Strip(url) /* delete leeding and traling spaces */
defaultAcount = Strip(defaultAcount)

Parse Var url part.email "?" url /* Check if there are more
parameters than the emailaddress */
i = 0 /* the first parameter starts with
a "?" all other with a "&" */
....

Oliver

Freiheit

unread,
Jun 5, 2002, 6:07:33 PM6/5/02
to
Thanks, I'll give it a try.

Don

Allan

unread,
Jun 5, 2002, 7:20:35 PM6/5/02
to
On Wed, 5 Jun 2002 17:16:27 UTC, o...@opweb.de (Oliver Poggensee) wrote:

> For everyone who like to use PmMail instead of the Mozilla mailer, can
> get the script and doku from my homepage.
> http://www.opweb.de

Thank you. Just downloaded and installed it, and it seems to work.
However - it didn't hit the account in PMMail, I tried to reach.
What is line 20 refering to ? The dir name or the "real" name of the account ?

--
Allan.

It is better to close your mouth, and look like a fool,
than to open it, and remove all doubt.

Freiheit

unread,
Jun 5, 2002, 7:29:08 PM6/5/02
to
Good question. I'm having a similar problem (among others). I could
not get it to load any of my existing PMMail accounts when opening the
PMMail window -- it acted like a fresh install of PMMail -- it even said
"demonstration" in the title bar.

Manually starting PMMail from the command line using the /s profilename
is working (somewhat) for me. It does seem to use the actual profile
name if there are no spaces in said profile name. If there are, it
seems to just ignore that parameter and open your default PMMail account.

But all it does is open the account -- it does not open a New Message
window (for me at least). It's looking very promising, but I've still
got a ways to go on my end to make it work. I wonder if the old
Netscape 4 plugin to launch PMMail would still work in Mozilla. But
that also had limitations in that it could *only* work with your PMMail
default account.

Don

Oliver Poggensee

unread,
Jun 6, 2002, 3:32:15 AM6/6/02
to
On Wed, 5 Jun 2002 23:29:08 UTC, Freiheit
<frei...@nospam-syntheticdimension.net> wrote:

> Good question. I'm having a similar problem (among others). I could
> not get it to load any of my existing PMMail accounts when opening the
> PMMail window -- it acted like a fresh install of PMMail -- it even said
> "demonstration" in the title bar.

Where have you installed your email folders? If they are NOT under
PMMail it could cause your problems.

>
> Manually starting PMMail from the command line using the /s profilename
> is working (somewhat) for me. It does seem to use the actual profile
> name if there are no spaces in said profile name. If there are, it
> seems to just ignore that parameter and open your default PMMail account.

I will test that.

You could try to first change to the Pmmail directory
rc = Directory("h:\online\pmmail")
and use as program variable only pmmail.exe
program = "pmmail.exe"

What version of Pmmail do you use, I have tested only with 2.20.2370.

>
> But all it does is open the account -- it does not open a New Message
> window (for me at least). It's looking very promising, but I've still
> got a ways to go on my end to make it work. I wonder if the old
> Netscape 4 plugin to launch PMMail would still work in Mozilla. But
> that also had limitations in that it could *only* work with your PMMail
> default account.

No the Netscape Pmmail plugin won't work in Mozilla.

Oliver

Oliver Poggensee

unread,
Jun 6, 2002, 3:32:13 AM6/6/02
to
On Wed, 5 Jun 2002 23:20:35 UTC, all...@warpspeed.dyndns.dk (Allan)
wrote:

> Thank you. Just downloaded and installed it, and it seems to work.
> However - it didn't hit the account in PMMail, I tried to reach.
> What is line 20 refering to ? The dir name or the "real" name of the account ?

It is the real account name. The name you have use in the Account
Settings, Page General, in the field Description.

Oliver

Allan

unread,
Jun 6, 2002, 4:40:36 PM6/6/02
to

Didn't work at first; but then I figured out, that it was because PMMail was already
open. If PMMail is closed before trying this, it works.

Freiheit

unread,
Jun 6, 2002, 7:46:59 PM6/6/02
to
> Where have you installed your email folders? If they are NOT under
> PMMail it could cause your problems.

My PMMail account folders are under \pmmail.

> You could try to first change to the Pmmail directory
> rc = Directory("h:\online\pmmail")
> and use as program variable only pmmail.exe
> program = "pmmail.exe"

Yes, I made this change yesterday when it became obvious (although I do
not know why) that I could not under any circumstances start PMMail from
the command line _AND_ have it select the proper account _UNLESS_ I was
already CD'd into the pmmail directory. This was independent of your
pmmail.cmd but clearly related. So I made the change just as you
described above and that's when I noticed these other problems (such as
not being able to select accounts whose names contain spaces).

> What version of Pmmail do you use, I have tested only with 2.20.2370.

I have PMMail/2 version 2.20.2300.

Thanks again Oliver. If I can just get the script to work with my
space-in-name PMMail account we'll at least be halfway to where I want
to be. :)

Don Eitner

0 new messages