Introducing LzWebmailWrapper, to use a webmail as the default mail client in Linux

Qui la versione italiana.

Do you belong to the ones who have ever tought that webmails are very handy tools? Me too! πŸ˜€ This is why I like Gmail. And I also like Linux.

I’ve been using for a while a script to open Gmail in Firefox every time I encountered an email address. However some problems used to come when encountering an url with integrated parameters, as for example the subject. It’s true, the major part of links doesn’t contain parameters, but when they come it’s a problem.

Another defect of that script is that it opens a new Gmail composition window that I can define “fullscreen” because it doesn’t show lateral bars and the rest of the interface. A bit ugly. πŸ˜›

Then I remembered WebmailCompose, a Firefox extension that worked better, but only for Firefox indeed. Besides the extension supported also other Webmail services. Then I dediced to combine the two things, and I planned to create a script independent from the desktop environment (Gnome, Kde, etcetera…), from the browser and from the used webmail service.

A kind of that…

I started to modify the script, and at the end I managed to get what I wanted. Now the script is terminated and functioning, there is only a problem with Windows Live Mail website (not so strange, after all πŸ˜€ ) and namely that a possible Bcc parameter doesn’t work. I have no idea of the reason, it must be a bug of their website.

The script is licensed under the Gpl version 3 and you can download the latest version from here (view all versions here).

Extract the files in your home directory, and then use the terminal to move the script among the executables and to assign to it the right permissions:

sudo mv /usr/bin/
sudo chmod a+x /usr/bin/

Now you simply have to configure your desktop environment.

Gnome configuration

Go on System > Preferences > Preferred applications and at the voice Mail Client choose Custom. In the below field insert: %s SERVICE

Instead of SERVICE insert gmail, yahoo, opera, hotmail or mail-com*. Be careful to insert correct and lower case names.

Close the window and try some email link, here is an example one.

Kde configuration

To configure Kde, open the control center. Go in KDE components > Component chooser > Mail client and tick the Use a different email client checkbox. Insert, as the command: %t"?cc="%c"&bcc="%b"&subject="%s"&body="%B SERVICE

And refer to the Gnome instructions regarding the service. Remember that Konqueror and Gmail don’t go on so much, indeed they said me that in this case the script doesn’t work.

For this part I must thank RikyM, which has done the guinea-p… ehm the tester for me. πŸ˜€

Update: there have been reported some problems with the use in Kde (if you start the script from console), to blame to kfmclient. So if you get them, you know it’s not my fault.


I report here the thanks I’ve inserted in the script, too. πŸ˜‰

Many thanks to:

Yes… I know, my English isn’t perfect. πŸ˜›

If you have any suggestion leave a comment.

  • Small note: if you’re not logged in and you use Opera Mail or, at the first opening you’ll be prompted to login, and you’ll have to open the link again.

8 pensieri riguardo “Introducing LzWebmailWrapper, to use a webmail as the default mail client in Linux

  1. Maybe you didn’t notice it, but now firefox can do it natively.
    See gmail official blog for details.

    (Btw, it supports also Yahoo! Mail)

  2. @ monkey, yes you’re right. I didn’t noticed it. By the way, my script is at least useful when you use a different browser, and also with links that you don’t click inside the browser but, for example, in a terminal, or elsewhere. πŸ˜‰

  3. i know det now u r sooooo cool ‘cuz u’ve started 2post in english BUT maybe it’s time 2 update det blog….maybe sum1 wud like 2 know HOW R U….. maybe….

  4. @ vali…, too easy irony. πŸ˜‰ A part of that, I’m not sure that anyone would like to know how I am. I’m not even sure that anyone cares about me. There are too many things going on that I need to resolve before I can be able to tell if I feel good or bad. We can talk about it. You don’t need to pretend that you don’t speak English. πŸ™‚

  5. @lazza
    so gloomy considerations my friend! then, maybe sum1 doesn’t care ’bout u but i’m SURE, definitely, det lot o people do. well, i do 4sure.
    so plz don’t waste ur time in sad thoughts. i think det sum1 is happy if he wants 2 b happy, & det u don’t really want 2.
    u r so similar 2 leopardi, less hunch-backed, but not so different. glorious in his pain. & i don’t think det u huv SO many things 2 resolve in august. be lighthearted! if want, mail me.

Lascia un commento

Il tuo indirizzo email non sarΓ  pubblicato. I campi obbligatori sono contrassegnati *