Bugs
: K-Meleon Forum
You can talk about issues with k-meleon here. But please, for confirmed bugs, use the bug tracker to report and give feedback on bugs.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JujuLand] Yes, really long ... I have forgotten ... Here is the modifications in mail.kmm. I must first explain that the initial purpose was to unbreak all the mail functions under Linux (and wine), so I made a test to recognize on which system K-Meleon is running, and a second test send the good command. The OS test : $_windows=readfile("Z:\\etc\\group"); returns "" if Windows, something if Linux In your case, the test is not needed, as it doesn't work, but you must probably replace the default command (in the original file) by the Linux used command in my modifications. Try it, but I'm not sure that the modif will works for you. ********************************************************************************* Mail_ComposeMessage{ $_windows=readfile("Z:\\etc\\group"); $_windows==""?open("mailto:"):$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $_windows==""?0:exec($__mailto." mailto:"); } For example, Mail_ComposeMessage will be: Mail_ComposeMessage{ exec(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient")." mailto:"); } Mail_SendPageURL{ macroinfo=_("Send a link to the current page by mail"); $_windows=readfile("Z:\\etc\\group"); $_windows==""?0:$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $_windows==""?&JS_hndlTop:$_Location="mailto:?subject=".$TITLE."&body=".$URL; $_windows==""?0:exec($__mailto." ".$_Location); } a second example, and you'll finish the rest: Mail_SendPageURL{ macroinfo=_("Send a link to the current page by mail"); $_Location="mailto:?subject=".$TITLE."&body=".$URL; exec(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient")." ".$_Location); } You are now working on it :), and continue with the rest Mail_SendLinkURL{ macroinfo=_("Send the current link by mail"); $_windows=readfile("Z:\\etc\\group"); $_windows==""?$JS_doitLink="j=a.length;location='mailto:?body='+encodeURIComponent(href)":$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $_windows==""?&JS_hndlLink:$_Location="mailto:?subject=".$LinkURL."&body=".$LinkURL; $_windows==""?0:exec($__mailto." ".$_Location); } Mail_SendImageURL{ macroinfo=_("Send a link to the current image by mail"); $_windows=readfile("Z:\\etc\\group"); $_windows==""?$JS_doitImage="a=false;location='mailto:?subject='+encodeURIComponent((title)?title:((alt)?alt:document.title))+'&body='+encodeURIComponent(src)":$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $_windows==""?$JS_doitInput=$JS_doitImage:0; $_windows==""?&JS_hndlImage:$_Location="mailto:?subject=Image >> ".$ImageURL."&body=".$ImageURL; $_windows==""?0:exec($__mailto." ".$_Location); } Mail_SendFrameURL{ macroinfo=_("Send a link to the current frame by mail"); $_windows=readfile("Z:\\etc\\group"); $_windows==""?$JS_doit="location='mailto:?subject='+encodeURIComponent(title)+'&body='+encodeURIComponent(URL)":$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $_windows==""?&JS_hndlDoc:$_Location="mailto:?subject=".$TITLE."&body=".$LinkURL; $_windows==""?0:exec($__mailto." ".$_Location); } Mail_SendSelection{ macroinfo=_("Send the selected text by mail"); $_windows=readfile("Z:\\etc\\group"); $_windows==""?$JS_doit="if(window.getSelection())location='mailto:?subject='+encodeURIComponent(title)+'&body='+encodeURIComponent(window.getSelection())":0; $_windows==""?0:$__mailto=getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"); $SelectedText==""?0:&Mail_ExecSelect; } Mail_ExecSelect{ $_windows==""?&JS_hndlDoc:$_Location="mailto:?subject=".$TITLE."&body=".$SelectedText; $_windows==""?0:exec($__mailto." ".$_Location); } ********************************************************************************** A+[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development