Discussion:
SeaMonkey & mailto: argument
(too old to reply)
A.D. Fundum
2014-10-29 22:31:47 UTC
Permalink
The WPS supports a SM program object with a parameter like
"mailto:"[mailto:]". This will start a SM browser window. And it will
open the "Send mail" window, because the valid URL is
"mailto:<optional_text>. BTW, the []-WPS functionality may have to be
considered as being (excellent and) OS-specific, but this isn't an
implied RFC at all, and any OS may be able to use batch commands with
commands like "seamonkey mailto:".

The combined parameter "-mail mailto:" doesn't work, because it
launches the browser instead of any mail-related window. IOW: all
parameters are ignored, including "-mail" itself. I'm not sure that
the expected result is starting SeaMonkey Mail in send-mail-mode,
because it'll only accept "-mail" without any other random argument
and there's no reason why it should interpret my random "mailto:" CLI
argument as if it's a browser's URL.

But is is possible to start SM as if the user used a HTML
mailto:-link, using the WPS with a parameter like "mailto:[mailto:]",
which doesn't open a browser window?

I guess there's no need to answer if the answer is "no". The most
important goal, opening no mail-related window other than the "Send
mail"-window, with a copy & paste email address, is already achieved,
The overhead of starting (and having to close) the browser window
typically is hardly worth mentioning, so at best it'll be
nice-to-have.


--
A.D. Fundum
2014-10-29 23:06:24 UTC
Permalink
Post by A.D. Fundum
The WPS supports a SM program object with a parameter
like "mailto:"[mailto:]". This will start a SM browser window.
And it will open the "Send mail" window
FWIW, with the Browser Window-bonus:
--
/* SMSM.CMD (SeaMonkey Send Mail) */
ARG exe
error=0
IF Right(exe,13)<>'SEAMONKEY.EXE' THEN DO
SAY 'Usage: SMSM.CMD <full_path>'
SAY
SAY ' <full_path>: full path of SEAMONKEY.EXE, for example'
SAY ' I:\INTERNET\SM\SEAMONKEY.EXE'
EXIT
END
IF Stream(exe,'C','QUERY EXISTS')='' THEN DO
SAY 'Error: cannot find file' exe
SAY
EXIT
END
CALL RxFuncAdd 'SysCreateObject','RexxUtil','SysCreateObject'
class='WPProgram'
title='SeaMonkey Send Mail'
location='<WP_DESKTOP>'
exe='EXENAME='||exe||';PARAMETERS=mailto:[mailto:]'
option='U'
IF SysCreateObject(class,title,location,exe,option)>0 THEN DO
SAY 'Program object' title 'created.'
EXIT
END
SAY 'Error: could not create program object' title
EXIT
f***@gmail.com
2015-01-14 06:57:49 UTC
Permalink
c:\PortableApps\SeaMonkeyPortable.exe -compose mailto:emailaddress

I use autohotkey and setup a hotkey to trigger it with two fingers with using mouse.
A.D. Fundum
2015-01-14 12:43:51 UTC
Permalink
Post by f***@gmail.com
c:\PortableApps\SeaMonkeyPortable.exe -compose mailto:emailaddress
I use autohotkey and setup a hotkey to trigger it with two fingers with using mouse.
Great!

FWIW, without the Browser Window-bonus. It creates three objects. One
for pasting or typing "***@myisp.net", and one for pasting or typing
"mailto:***@myisp.net?subject=Thank%20you". Of course one can also
write an app which prepends the required "mailto:" if that's missing.
The third object just opens the window, without any argument (same as
not prepending the required mailto:, you don't need all objects).
--
/* SMSM.CMD (SeaMonkey Send Mail objects) */
ARG exe
error=0
IF Right(exe,13)<>'SEAMONKEY.EXE' THEN DO
SAY 'Usage: SMSM.CMD <full_path>'
SAY
SAY ' <full_path>: full path of SEAMONKEY.EXE, for example'
SAY ' I:\INTERNET\SM\SEAMONKEY.EXE'
EXIT
END
IF Stream(exe,'C','QUERY EXISTS')='' THEN DO
SAY 'Error: cannot find file' exe
SAY
EXIT
END
CALL RxFuncAdd 'SysCreateObject','RexxUtil','SysCreateObject'
class='WPProgram'
title='SeaMonkey Send Mail'||D2C(10)||'(email address only)'
location='<WP_DESKTOP>'
exe1='EXENAME='||exe||';PARAMETERS=-compose'
exe2='mailto:[Email address without mailto: prexix]'
option='U'
IF SysCreateObject(class,title,location,exe1 exe2,option)=0 THEN DO
SAY 'Error: could not create program object' title
EXIT
END
title='SeaMonkey Send Mail'||D2C(10)||'(link w/mailto: prefix)'
exe2='mailto:[Link with mailto: �prefix]'
IF SysCreateObject(class,title,location,exe1 exe2,option)=0 THEN DO
SAY 'Error: could not create program object' title
EXIT
END
title='SeaMonkey Send Mail'||D2C(10)||'(without parameters)'
IF SysCreateObject(class,title,location,exe1,option)=0 THEN DO
SAY 'Error: could not create program object' title
EXIT
END
SAY 'Objects created.'
EXIT
f***@gmail.com
2015-01-14 06:58:55 UTC
Permalink
I use autohotkey and setup a hotkey to trigger it with two fingers without using a mouse al all.
Loading...