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
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
> 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
Thanks!
Don Eitner
> 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
Don
> 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.
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
> 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
> 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
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.
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