Harsh J

Memoirs of a QWERTY Keyboard

Making GMail’s Web-Interface the default mail client in Ubuntu

with 6 comments

Agreed using a mail client for GMail would be an easier and better task than using the Web interface, but still, there are many who love the web interface!

GMail

So if you don’t wish to join the IMAP and POP crowd by running Thunderbird or Evolution, etc, this mini-guide by HowToGeek is for you.

First off, open up your text editor (GEdit or whichever it is you use) and type the following into it:

If you are using Firefox:

#!/bin/bash
firefox https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ’s/mailto://’

Or for Opera:

#!/bin/bash
opera -newpage “https://mail.google.com/mail/?view=cm&tf=0&to=`echo $1 | sed “s/mailto://”`”

Save the file as gmailto (No extension’s required).

Now right click the file and go to Properties and under the Permissions tab, check the “Allow executing file as a program” check-box. Like the following:

Now issue the command:

sudo mv gmailto /usr/bin/gmailto

(Assumes your gmailto file was in Home directory. Replace with location if not.)

Now head to System > Preferences > Preferred Applications and in the Window that appears, choose Custom in the Mail Reader field and give the Command field as:

gmailto

Refer this image to understand better:

Hit Close and you’re done. For testing it out, click this link - mail@someone.com. That should automatically take you to GMail’s Compose page with the address in it automatically, just like how clients handle it.

Credits to HowToGeek.

P.s. Also works for all types of Linux distributions running GNOME I suppose.

Written by Harsh

November 21st, 2007 at 6:59 pm

Posted in Uncategorized

Tagged with

6 Responses to 'Making GMail’s Web-Interface the default mail client in Ubuntu'

Subscribe to comments with RSS or TrackBack to 'Making GMail’s Web-Interface the default mail client in Ubuntu'.

  1. There’s a Greasemonkey extension which does that. Nevertheless this might be for those who don’t use FX.

    Ashwin

    21 Nov 07 at 9:50 pm

  2. Greasemonkey would restrict it ONLY to Firefox. This one works globally from any mailto: link in the entire OS, just like a client would handle. Documents, About dialog boxes, anything. :)

    HowToGeek link contains a way of integration for Windows as well.

    Harsh

    21 Nov 07 at 9:54 pm

  3. I use OS X. :P Anyway no issues.

    Check your blog for issues. When I commented last time around, I got some errors but the comment came over here.

    Ashwin

    23 Nov 07 at 11:02 am

  4. I don’t get your OSX point. :)

    Yeah those were Live Archive errors. Fixed them.

    Harsh

    23 Nov 07 at 11:39 am

  5. I use OS X 10.4, not Windows or Linux but I’m not sure if HowtoGeek have tut for OS X as well. No issues because, I use Firefox + Gresemonkey.

    Ashwin

    23 Nov 07 at 1:23 pm

  6. Doesn’t Mac support bash like scripting as well?

    Harsh

    23 Nov 07 at 2:06 pm

Leave a Reply