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+
Mozilla/5.0 (x11; U; Linux x86_64; en-US; rv:1.9.1.17pre) Gecko/20101211 Ubuntu/12.04 (precise) K-Meleon/1.6.0
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:1.9.2.14pre) Gecko/20101219 Ubuntu/12.04 (precise) K-Meleon/1.7.0
Web:
K-Meleon Extension Setup (French) and
(English)
Web:
http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
Edited 1 time(s). Last edit at 07/16/2009 02:20AM by JujuLand.