General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: Previous123Next
Current Page: 2 of 3
Re: Java Script On/Off button?
Posted by: Fred
Date: May 02, 2010 06:40PM

P.S.
"Send Image as Link" puts the word "Image" into "Subject".
"Send Frame as Link" puts the first word of the title into "Subject".

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 02, 2010 06:41PM

@Fred,

Could you put here complete line commands which fail ?

There is perhaps some "" needed to delimit the parameters ...

Quote

Two menus for "Mail and News" are in the Tools menu.
You have probably forget to delete a backup copy of the kmmfile. gedit rename it .kmm~, and K-Meleon takes it.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 05/02/2010 06:45PM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 02, 2010 07:47PM

For claws-mail I have the mail client string
"Z:\usr\bin\xterm -e /usr/bin/claws-mail --compose"
to open claws-mail with the terminal xterm.
Leaving out "--compose" would not open the wanted
text in the Compose window, but only open the mail client.
When you then open the Compose window manually,
it will be empty.
I have noticed, that mail.kmm, when present, does
stop tuxmail.kmm from working correctly.
But you cannot Configure Mail without it, so I put
it in again, and then you have two "Mail and News"
menus, although the tuxmail macro works afterwards,
"Send by mail" for selected text seems not to work.
It sends the first word of the page title.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 02, 2010 08:13PM

I have downloaded thunderbird, and there everything
works ok, even without the option -compose.
The missing things are still "New message" and
"Configure Mail", as I see it.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 02, 2010 08:21PM

I have found an error in Mail_SendFrameURL, the command line uses $LinkURL instead of $URL. In this function I have also added a line to set the title as in SendURLPage: $TITLE==""?$_title=$URL:$_title=$TITLE;
The reason is obvious, when a page hasn't a title tag, the mail title is filled with the URL

To look for the command line, you can add an alert line for all the function (at the end of the function, or better just before the commandline:

alert(<command line>,"Command Line");

You have just to replace <command line> with the content of the send commandline.

Example: for SenPageURL:

alert(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient") ." mailtomoody smileysubject=" . $_title. "&body=".$URL,"Command Line");

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 05/02/2010 08:22PM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 02, 2010 08:31PM

It does not seem to work in Evolution for me.
The client is called up, but crashes immediately.
There is also no option for compose, just
evolution -c mail .

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 02, 2010 08:32PM

What is the problem with mail config ?

If you have added private par of mail.kmm to mailtux, it ought to work correctly.

I have also the problem with New mail, I'm looking for it.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 02, 2010 08:41PM

You're right, when the short version of mailtux doesn't work, you must also copy the needed config functions (I don't see it at home, as the short version works here).

In fact mailtux must be complete mail.kmm with modified Send functions.

Damned, it was really obvious for New mail ...

Mail_ComposeMessage{
macroinfo=_("Compose a new message");
$tux==""?open("mailto:"):exec(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient")." mailto:");
}

Can you give an example of a commandline for evolution and claws-mail ?

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 05/02/2010 08:47PM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 02, 2010 09:18PM

For Claws-mail
Z:\usr\bin\xterm -e /usr/bin/claws-mail --compose
For Sylpheed the same as far as I recall (I can't test it here).
Z:\usr\bin\xterm -e /usr/bin/sylpheed --compose
For Evolution look here :

http://library.gnome.org/users/evolution/stable/bsekq8r.html.en

In Evolution it does not work for me as it seems.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 03, 2010 07:42AM

@Fred,

SendFrame doesn't work. It sends $URL, and not the frame URL. If we try to use jsfunction, it returns 0. I don't know now how to handle it.

Hide this context menu entry, or send like now $URL ??

For evolution, it seems that it's like Thunderbird: /usr/bin/evolution mailto: ...

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 05/03/2010 08:10AM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 03, 2010 08:32AM

@Fred,

Evolution didn't work correctly, because the parameters title and body must be pass between ""

This version correct it, and adds also a new function (in tools>mail) to send the content of the clipboard without having to mark text. It can be from inside K-Meleon, or from another appli.

The commandline for evolution in configurate mail is : Z:\usr\bin\evolution <<< That's enough

I'll try to see how to correct sylpheed and claws-mail problem.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 3 time(s). Last edit at 05/03/2010 09:12AM by JujuLand.

Attachments: tuxmail.kmm (5.9 KB)  
Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: jar
Date: May 04, 2010 05:16PM

Hello,

you can of course use javascript within privacy bar and let visible only javascript button (so it won´t take space): edit- configuration- toolbars and comment all un- wanted items from privacy bar. Save changes and restart browser.

Best regards,
jar

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: jar
Date: May 04, 2010 05:29PM

pt 2: It is very easy, there really is no need to create new macro etc. If it looks like this you will see only javascript button, which you can place wherever you want:

&Privacy Bar(54,10){

%ifplugin macros

# Cookies{
# macros(pref_ToggleCookies)
# Block Cookies
# privbar_red.bmp[0]
# privbar_green.bmp[0]
# }

# Images{
# macros(pref_ToggleImages)
# Block Images. Press F9 to toggle.
# privbar_red.bmp[1]
# privbar_green.bmp[1]
# }

# Java{
# macros(pref_ToggleJava)
# Block Java Applets
# privbar_red.bmp[2]
# privbar_green.bmp[2]
# }

JavaScript{
macros(pref_ToggleJavaScript)
Block JavaScript. Press F7 to toggle.
privbar_red.bmp[3]
privbar_green.bmp[3]
}

# Popups{
# macros(pref_TogglePopups)
# Block Popups. Press F8 to toggle.
# privbar_red.bmp[4]
# privbar_green.bmp[4]
# }

# Referer{
# macros(pref_ToggleReferer)
# Block HTTP Referer
# privbar_red.bmp[5]
# privbar_green.bmp[5]
# }

%endif

%ifplugin privacy

# Clear Cache{
# privacy(ClearCache)
# Clear Cache
# privbar_red.bmp[6]
# privbar_green.bmp[6]
# }

# Clear Cookies{
# privacy(ClearCookies)
# Clear Cookies
# privbar_red.bmp[7]
# privbar_green.bmp[7]
# }

# Clear History{
# privacy(ClearHistory)
# Clear History
# privbar_red.bmp[8]
# privbar_green.bmp[8]
# }

# Clear Passwords{
# privacy(ClearSignon)
# Clear Passwords
# privbar_red.bmp[9]
# privbar_green.bmp[9]
# }

# Clear URLBar{
# privacy(ClearMRU)
# Clear URL Bar History
# privbar_red.bmp[10]
# privbar_green.bmp[10]
# }

%endif

%ifplugin macros & privacy
# Clear All{
# macros(kPrivacy_ClearAll)
# Clear All
# privbar_red.bmp[11]
# privbar_green.bmp[11]
# }
%endif

%ifplugin macros

# Kill Flash{
# macros(JS_killFlash)
# Kill Flash Objects
# privbar_red.bmp[12]
# privbar_green.bmp[12]
# }

# Kill Applets{
# macros(JS_killApplets)
# Kill Java Applets
# privbar_red.bmp[13]
# privbar_green.bmp[13]
# }
-
# User Agent{
# ID_APP_ABOUT|&User Agent
# Check Browser Identity. Right-click to choose different User Agent.
# privbar_red.bmp[14]
# privbar_green.bmp[14]
# }

%endif

}

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 04, 2010 06:28PM

@ jujuland
Configure Mail works now without mail.kmm .
Unfortunately sending things to Evolution still does
not work for me.
New Message does also not work, only Read Mail.
I don't know what the cause is.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 04, 2010 06:53PM

A quick correction:
Everything works ok.
There must have been an error in my Evolution download.
Read mail was possible, but the compose window did not open.
After a new installation of Evolution, it was fixed.
Good work.
Sorry for the false report before, but may be you did
not read it yet because of my quick correction.
Regards

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 04, 2010 07:15PM

P.S.:
Works with Claws-mail also correctly now,
but --compose must be added.
This sends things to the Compose window.
For Sylpheed it will probably the same.
Another popular mail client is Kmail
in the KDE versions.
I will test it, if I can install it here.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 05, 2010 09:28PM

@ Jujuland

Sylpheed works correctly.
Kmail does not accept all functions here for me.
OK for: ReadMail, New Message, Open Mailto Link(right hand click).
Does not work for :
Send Page as Link, Send clipboard Content,Send Link URL,
Send Selected Text (Send by Mail), Mailto by left hand click.
The compose window is opened for all, except for Mailto,
which opens Firefox here with a window to select
Yahoo mail, Google mail or select an application.
Selecting kmail opens its compose window then.
Probably Firefox is the default browser in the
used distro.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 06, 2010 07:35AM

I have made some improvements:

- FrameURL now works (I didn't used the good variable.
- I have added a way to add --compose parameter (or another for other mail client). See at the top of mailtux ($compose)
- I have modified titles for link, frame and text (translatable)

Try with sylpheed and claws-mail

For kmail, I have no idea for now. But it seems that kmail doesn't handle mailto parameters the same way, or just doesn't accept mailto parameters.

[edit]

I have found a page treating of .the mailto problem with kmail. It's not exactly the problem we want to avoid, but in this page, there is perhaps the reason of the problems you encountered.

http://mdvmondelinux.tuxfamily.org/Les-liens-mailto-de-Firefox-vers

French link, but I don't think it will be a problem

[/edit]

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 2 time(s). Last edit at 05/06/2010 08:12AM by JujuLand.

Attachments: tuxmail.kmm (6.6 KB)  
Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 07, 2010 05:40PM

In Claws-mail, it is still necessary to add --compose
manually in Configure Mail. Was it your intention to
do that automatically ?
Concerning Kmail, I suppose that you thought, that
adding a pref network.protocol-handler.app.mailto
pointing to Z:\\usr\\bin\\kmail would solve the
problem with Kmail. This seems not to help.
In the gnome distro that I am using at the moment
it also does not open Firefox automatically for mailto,
which was the case in the KDE distro, where I tried
Kmail before. I am not sure how this was handled
there by the developers of the distro.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 07, 2010 06:49PM

@Fred,

Quote

In Claws-mail, it is still necessary to add --compose
manually in Configure Mail. Was it your intention to
do that automatically ?

Yes, but I thought it ought not necessary to add it to the mail pref.

Remove --compose from the command line, and after these few lines, add an alert to test the value:

$compose=" ";

index(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"),"claws-mail")>-1?$compose="--compose ":0;
index(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient"),"sylpheed")>-1?$compose="--compose ":0;
alert($compose,"$compose value");

it ought to display "--compose "

But I perhaps fail about the strings to compare ?

add also this line in MailSendPageURL for example:

alert(getpref(STRING,"kmeleon.plugins.macros.mail.mailClient").$compose.""mailtomoody smileysubject=\"".$_title."\"&body=".$URL","Command Line");

to see if the command line is correctly composed.

Quote

Concerning Kmail, I suppose that you thought, that
adding a pref network.protocol-handler.app.mailto
pointing to Z:\\usr\\bin\\kmail would solve the
problem with Kmail. This seems not to help.

I must read again the page I give you, because I thought it was perhaps less easier than that.

Quote

In the gnome distro that I am using at the moment
it also does not open Firefox automatically for mailto,
which was the case in the KDE distro, where I tried
Kmail before. I am not sure how this was handled
there by the developers of the distro.

Really curious to use Firefox to open a mailto, no ???
You talk obviously of the linux version of Firefox, no ?

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 05/07/2010 06:50PM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 07, 2010 07:04PM

@Fred,

the link to the script is broken, and we can't see the commandline wiat by kmail.

It seems that there is an encoding problem, and probably the arguments aren't passed the same way.

Quote

En fait, il existe un programme kmailservice, prévu pour servir d’interface entre les applications et kmail, qui sait décoder le lien mailto qu’envoie Firefox. Ce programme se trouve dans le paquetage kdelibs-common qui devrait déjà être installé sur votre machine (je n’utilise pas kmail et ce paquetage est malgré tout installé...). Cependant, une histoire d’encodage vient compliquer l’histoire : kmailservice ne décode pas les codes des caractères accentués utilisés par Firefox.

I'll try to find an article which talk about kmail.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 07, 2010 07:26PM

I have found this:

Quote

kmail command line options

I can't seem to get mail to work, but I've got kmail working fine from the gui interface, anyway. How can I get kmail to send a file from the command line? When I try something like:

cat file | kmail -s "Subject" my_email_address
--or--
kmail -s "Subject" --msg msg_file my_email_address

...the kmail client window pops open all loaded and ready to send but waiting for me to click the "send" button. I want it to go ahead and do the send automatically, so this can be done from a script. Surely kmail will allow this...?

Thanks.

The guy wants to send the content of a file, So, perhaps we can change the file by a string in ""

to create a new mail, try this:

/usr/bin/kmail -s " "

for the other functions, a syntax a little like that:

kmail -s "Subject" --msg "msg content"

Can you just try this by commenting the common command line in SendPageURL ?

If it works, I'll modify the functions to send the good things.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 05/07/2010 07:27PM by JujuLand.

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 07, 2010 09:34PM

I have not tested everything yet.
In Kmail there is an option --body.
Configure Mail with the string
Z:\usr\bin\kmail -s "subject" --body "texthere"
opens New Message and the other functions (ReadMail too)
opening Compose with "subject"in the Subject line
and "texthere" in the message area.

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 08, 2010 11:47AM

@fred

ok, I'll modify functions.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 08, 2010 05:20PM

@Fred,

Here is a new version which must handle Thunderbird, claws-mail, sylpheed, kmail, and others mail client which use standard syntax (like Thunderbird) for mailto. It will be easy to add some other mail client, even it uses other syntax.

Try it with claws-mail or sylpheed and kmail. I have tried it with Thunderbird, and it works ok.

Just a function for kmail, where I have some doubt: create a new mail, I send -s " "
to force creation, as I think just sending the command without parameter, it would just open kmail, and not compose. You can try to change $kmail from
"-s \" \"" to "-s" to see if it's enough to compose with kmail

If there are some problems, you can uncomment alert lines to see the sent command lines.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Attachments: tuxmail.kmm (8.4 KB)  
Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 08, 2010 09:51PM

@ Jujuland

Kmail tested in KDE works ok now, except for Send Clipboard,
where the content is in the address bar (in Sylpheed too).
Mailto left click still opens Firefox, the default
browser, to select a mail client, which works then.
For Sylpheed too, and Evolution, which I tested
in the new Ubuntu Lucid, also opens Firefox.
All this only works that way if the mailto error message is
hidden in Tuxhelper.
Evolution works alright too.
Sylpheed and Claws-mail still do not work without
manually adding --compose.
The alert button shows
Z:\usr\bin\sylpheed--compose mailto:
That means that a space is missing,
By the way : Changing the mail-client needs possibly a restart
after changing, because the alert after changing from
kmail to sylpheed shows Z:\usr\bin\sylpheed -s " " .

Fred

Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 09, 2010 09:21AM

@Fred,

Quote

Kmail tested in KDE works ok now, except for Send Clipboard,
where the content is in the address bar (in Sylpheed too).

Quote

Mailto left click still opens Firefox, the default
browser, to select a mail client, which works then.
I don't understand in which case Firefox is called, We call kmail, not Firefox. Perhaps kmail is a shell, and it would then be interesting to know what it does.
Is-it when left-clicking or launching a Send function ?

Quote

For Sylpheed too, and Evolution, which I tested
in the new Ubuntu Lucid, also opens Firefox.
All this only works that way if the mailto error message is
hidden in Tuxhelper.
Hum, in which case ? create a new mail or other functions ?
What appends if error message isn't hidden ?

Quote

Evolution works alright too.
All works ok with evolution ?

Quote

Sylpheed and Claws-mail still do not work without
manually adding --compose.
The alert button shows
Z:\usr\bin\sylpheed--compose mailto:
That means that a space is missing,
Yes, just add e space in the strings '--compose" >> " --compose"

Quote

By the way : Changing the mail-client needs possibly a restart
after changing, because the alert after changing from
kmail to sylpheed shows Z:\usr\bin\sylpheed -s " "
Yes, I noticed that. I'think we must include the macro settings if the mail client is changed in

Can you report complete results for sylpheed and claws-mail (each function where something is wrong), and for kmail too, because something is confusing for me.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 09, 2010 10:00AM

I have found another thread which helps to keep the different line command options.

Generic options:
--help Show help about options
--help-qt Show Qt specific options
--help-kde Show KDE specific options
--help-all Show all options
--author Show author information
-v, --version Show version information
--license Show license information
-- End of options

Options:
-s, --subject Set subject of message.
-c, --cc
Send CC: to 'address'.
-b, --bcc
Send BCC: to 'address'.
-h, --header Add 'header' to message.
--msg Read message body from 'file'.
--body Set body of message.
--attach Add an attachment to the mail. This can be
repeated.
--check Only check for new mail.
--composer Only open composer window.

Arguments:
address Send message to 'address'.

===

So, we have some answers :

1) line 28 : $body="--body" (-- instead of -)
2) line 30 : $kmail=" --composer"
3) ln 22-23: $compose=" --compose " (a space added at the beginning of the string)
4) add params init in Mail_ConfigureMail{} to set correctly parameters

I make some tests, and send a new version.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: JujuLand
Date: May 09, 2010 11:18AM

@Fred,

Here is a new version correcting the 4 problems we found.

I think, that this time, it ought to be ok, with 2 possible exceptions.
I'm not sure, if there is some " character in the string we want to send, that there will be no problem (Clipboard and selected)

Try and report it.

Two points we have not to forget:

1) under Linux, --help under console gives the command lines for a great part of programs

2) long name parameters are always (??) preceded by -- instead of -

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Attachments: tuxmail.kmm (9.4 KB)  
Options: ReplyQuote
Re: Java Script On/Off button?
Posted by: Fred
Date: May 09, 2010 09:37PM

@ Jujuland

Most things work now correctly, except mailto;
for left click.
With all mail-clients :
As long as "Hide the mailto message" is not activated
there is no reaction in all mail clients.
When "Hide the mailto message" is activated, the
default browser Firefox etc opens with a window
to select the mail client, which is then opened.
I don't know why this does not work for me.
I have downloaded a fresh copy of KM 1.5.4 .
For Ubuntu I used Evolution, and I have set the string
user_pref("extensions.tuxhelper.drive.C", "/home/ubuntu/.wine/drive_c");
Does it work for you with Thunderbird ?
I tried also with Icedove, which is the same as
Thunderbird in Debian distros, it is only renamed, and it
did not work for me either.
Besides that, in Kmail the macro for "Send Clipboard content"
does not work.

Fred

Options: ReplyQuote
Pages: Previous123Next
Current Page: 2 of 3


K-Meleon forum is powered by Phorum.