<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Set Gmail as Default Mail Client in Ubuntu</title>
	<atom:link href="http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/</link>
	<description>Computer Help from your Friendly How-To Geek</description>
	<lastBuildDate>Sun, 08 Nov 2009 07:56:33 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: konsumer</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-78865</link>
		<dc:creator>konsumer</dc:creator>
		<pubDate>Wed, 04 Nov 2009 21:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-78865</guid>
		<description>bradley: I said that above.

I started using chromium, and this solution will work for whatever you set as your default browser:

gnome-open https://mail.google.com/mail/?extsrc=mailto&amp;url=%s</description>
		<content:encoded><![CDATA[<p>bradley: I said that above.</p>
<p>I started using chromium, and this solution will work for whatever you set as your default browser:</p>
<p>gnome-open <a href="https://mail.google.com/mail/?extsrc=mailto&amp;url=%s" rel="nofollow">https://mail.google.com/mail/?extsrc=mailto&amp;url=%s</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bradley</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-78789</link>
		<dc:creator>bradley</dc:creator>
		<pubDate>Tue, 03 Nov 2009 07:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-78789</guid>
		<description>Much simpler solution:
Choose Gmail as the mailto handler in your Firefox Preferences (default option in 9.10 NBR), then set Firefox to be the Ubuntu mail handler (that is, choose Custom and point it to &quot;firefox %s&quot;). Since Firefox is configured to handle mailto: addresses correctly you no longer need a script to do anything messy, plus Firefox can now handle mailto: links on webpages internally without having to call an external script.

To set up Google Apps to work, do these steps --
Go to about:config and toggle this:
gecko.handlerService.allowRegisterFromDifferentHost

Type this into the address bar and hit enter:
javascript:window.navigator.registerProtocolHandler(&quot;mailto&quot;,&quot;https://mail.google.com/a/yourdomain.com/mail/?extsrc=mailto&amp;url=%s&quot;,&quot;YourDomain.com&quot;)

Then do the same thing as mentioned above.</description>
		<content:encoded><![CDATA[<p>Much simpler solution:<br />
Choose Gmail as the mailto handler in your Firefox Preferences (default option in 9.10 NBR), then set Firefox to be the Ubuntu mail handler (that is, choose Custom and point it to &#8220;firefox %s&#8221;). Since Firefox is configured to handle mailto: addresses correctly you no longer need a script to do anything messy, plus Firefox can now handle mailto: links on webpages internally without having to call an external script.</p>
<p>To set up Google Apps to work, do these steps &#8211;<br />
Go to about:config and toggle this:<br />
gecko.handlerService.allowRegisterFromDifferentHost</p>
<p>Type this into the address bar and hit enter:<br />
javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/a/yourdomain.com/mail/?extsrc=mailto&amp;url=%s&#8221;,&#8221;YourDomain.com&#8221;)</p>
<p>Then do the same thing as mentioned above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easoukenka</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-77218</link>
		<dc:creator>easoukenka</dc:creator>
		<pubDate>Tue, 29 Sep 2009 04:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-77218</guid>
		<description>This works so that if you click something that does not have a mailto but just opening your browser &quot;aka mail-notifier&quot; it will just open gmail.  This is customized for chromium.

Thank you so much for this!

#!/bin/sh
if [ &quot;$1&quot; = &quot;&quot; ]; then
        /usr/bin/chromium-browser --app=http://gmail.com
else
	/usr/bin/chromium-browser --app=&quot;https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo $1 &#124; sed &#039;s/mailto://&#039;`&quot;
fi</description>
		<content:encoded><![CDATA[<p>This works so that if you click something that does not have a mailto but just opening your browser &#8220;aka mail-notifier&#8221; it will just open gmail.  This is customized for chromium.</p>
<p>Thank you so much for this!</p>
<p>#!/bin/sh<br />
if [ "$1" = "" ]; then<br />
        /usr/bin/chromium-browser &#8211;app=http://gmail.com<br />
else<br />
	/usr/bin/chromium-browser &#8211;app=&#8221;https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo $1 | sed &#8217;s/mailto://&#8217;`&#8221;<br />
fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-76466</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Wed, 09 Sep 2009 20:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-76466</guid>
		<description>Geek: This is a unnecessarily complicated solution.  Simpler solutions in comments above.</description>
		<content:encoded><![CDATA[<p>Geek: This is a unnecessarily complicated solution.  Simpler solutions in comments above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius marais</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-76447</link>
		<dc:creator>Marius marais</dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-76447</guid>
		<description>Using 

gnome-open https://mail.google.com/mail/?extsrc=mailto&amp;url=%s

for GMail, and 

gnome-open https://mail.google.com/a/mydomain.com/mail/?extsrc=mailto&amp;url=%s

for Google Apps mail in the &quot;Command&quot; field will automatically open the default browser and allow Google to parse the mailto link, making things like ?subject=hello!&amp;cc=someone@example.net also work correctly.  As a bonus, it also works if you aren&#039;t yet logged in.</description>
		<content:encoded><![CDATA[<p>Using </p>
<p>gnome-open <a href="https://mail.google.com/mail/?extsrc=mailto&amp;url=%s" rel="nofollow">https://mail.google.com/mail/?extsrc=mailto&amp;url=%s</a></p>
<p>for GMail, and </p>
<p>gnome-open <a href="https://mail.google.com/a/mydomain.com/mail/?extsrc=mailto&amp;url=%s" rel="nofollow">https://mail.google.com/a/mydomain.com/mail/?extsrc=mailto&amp;url=%s</a></p>
<p>for Google Apps mail in the &#8220;Command&#8221; field will automatically open the default browser and allow Google to parse the mailto link, making things like ?subject=hello!&amp;cc=someone@example.net also work correctly.  As a bonus, it also works if you aren&#8217;t yet logged in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smaddox</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-76230</link>
		<dc:creator>smaddox</dc:creator>
		<pubDate>Thu, 03 Sep 2009 04:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-76230</guid>
		<description>I combined the best 2 scripts to get the following script that opens any mailto: in a new tab. Just edit preferences to  (ignoring the &#039;s), and save the following scipt to /home/[user]/mailto.sh:
***
#!/bin/bash
uri=`echo &quot;$1&quot; &#124; sed -e &#039;s/subject=/su=/&#039; -e &#039;s/^mailto:\([^&amp;?]\+\)[?&amp;]\?\(.*\)$/\1\&amp;\2/&#039;`
firefox -remote &quot;openurl(https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=$uri,new-tab)&quot;
***

Note: be sure to check that the quotations aren&#039;t fudged. When copying from the website to gedit all the quotation marks were changed to some weird unicode ones that don&#039;t function properly.</description>
		<content:encoded><![CDATA[<p>I combined the best 2 scripts to get the following script that opens any mailto: in a new tab. Just edit preferences to  (ignoring the &#8217;s), and save the following scipt to /home/[user]/mailto.sh:<br />
***<br />
#!/bin/bash<br />
uri=`echo &#8220;$1&#8243; | sed -e &#8217;s/subject=/su=/&#8217; -e &#8217;s/^mailto:\([^&amp;?]\+\)[?&amp;]\?\(.*\)$/\1\&amp;\2/&#8217;`<br />
firefox -remote &#8220;openurl(https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=$uri,new-tab)&#8221;<br />
***</p>
<p>Note: be sure to check that the quotations aren&#8217;t fudged. When copying from the website to gedit all the quotation marks were changed to some weird unicode ones that don&#8217;t function properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Lima</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-75274</link>
		<dc:creator>Diego Lima</dc:creator>
		<pubDate>Thu, 13 Aug 2009 04:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-75274</guid>
		<description>Hello,

I improved a bit the script to support multiple ways of opening gmail (firefox new window, firefox tab, opera). Here is my modified version:

#!/bin/sh

#Get our variables from stdin
OPENIN=&quot;${1}&quot;
EMAIL=&quot;${2}&quot;

#See how we want to open gmail
case $OPENIN in
    &quot;ffwindow&quot;)CMD=&quot;firefox https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo ${EMAIL} &#124; sed &#039;s/mailto://&#039;`&quot;;;
    &quot;fftab&quot;)CMD=&quot;firefox -remote openurl(https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo ${EMAIL} &#124; sed &#039;s/mailto://&#039;`,new-tab)&quot;;;
    &quot;opera&quot;)CMD=&quot;opera https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo ${EMAIL} &#124; sed &#039;s/mailto://&#039;`&quot;;;
esac

#Run command
$CMD</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I improved a bit the script to support multiple ways of opening gmail (firefox new window, firefox tab, opera). Here is my modified version:</p>
<p>#!/bin/sh</p>
<p>#Get our variables from stdin<br />
OPENIN=&#8221;${1}&#8221;<br />
EMAIL=&#8221;${2}&#8221;</p>
<p>#See how we want to open gmail<br />
case $OPENIN in<br />
    &#8220;ffwindow&#8221;)CMD=&#8221;firefox <a href="https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=" rel="nofollow">https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=</a>`echo ${EMAIL} | sed &#8217;s/mailto://&#8217;`&#8221;;;<br />
    &#8220;fftab&#8221;)CMD=&#8221;firefox -remote openurl(https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=`echo ${EMAIL} | sed &#8217;s/mailto://&#8217;`,new-tab)&#8221;;;<br />
    &#8220;opera&#8221;)CMD=&#8221;opera <a href="https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=" rel="nofollow">https://mail.google.com/mail?view=cm&amp;tf=0&amp;to=</a>`echo ${EMAIL} | sed &#8217;s/mailto://&#8217;`&#8221;;;<br />
esac</p>
<p>#Run command<br />
$CMD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hmm</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-74866</link>
		<dc:creator>hmm</dc:creator>
		<pubDate>Sat, 01 Aug 2009 23:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-74866</guid>
		<description>Shouldn&#039;t there be a program that does this?</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t there be a program that does this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carpintonto</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-74669</link>
		<dc:creator>Carpintonto</dc:creator>
		<pubDate>Sun, 26 Jul 2009 01:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-74669</guid>
		<description>If you are using a window manager whose menu doesn&#039;t work like gnome, the command to load the preferred applications utility is 
gnome-default-applications-properties</description>
		<content:encoded><![CDATA[<p>If you are using a window manager whose menu doesn&#8217;t work like gnome, the command to load the preferred applications utility is<br />
gnome-default-applications-properties</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carpintonto</title>
		<link>http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/comment-page-4/#comment-74668</link>
		<dc:creator>Carpintonto</dc:creator>
		<pubDate>Sun, 26 Jul 2009 01:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/#comment-74668</guid>
		<description>The down-loadable script works perfectly on

Linux Mint 7 Gloria - Main Edition \n \l
2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux

with 

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090716 Linux Mint/7 (Gloria) Shiretoko/3.5.1

1.  Download the script, do not copy and paste from this page, and chmod as instructed.
2.  In ff Shiretoko/3.5.1 Edit, Preferences, mailto select Use Gmail
3.  In ff open a new tab for about:config
4.  filter for &quot;network.protocol-handler.external.mailto&quot; (without quotes)
5.  right-click the entry and toggle to true.

It will open in a new tab if ff is already open.

Great hack !! 
sed doesn&#039;t stumble if there is no &quot;mailto:&quot; in the param

thanks :-)</description>
		<content:encoded><![CDATA[<p>The down-loadable script works perfectly on</p>
<p>Linux Mint 7 Gloria &#8211; Main Edition \n \l<br />
2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux</p>
<p>with </p>
<p>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090716 Linux Mint/7 (Gloria) Shiretoko/3.5.1</p>
<p>1.  Download the script, do not copy and paste from this page, and chmod as instructed.<br />
2.  In ff Shiretoko/3.5.1 Edit, Preferences, mailto select Use Gmail<br />
3.  In ff open a new tab for about:config<br />
4.  filter for &#8220;network.protocol-handler.external.mailto&#8221; (without quotes)<br />
5.  right-click the entry and toggle to true.</p>
<p>It will open in a new tab if ff is already open.</p>
<p>Great hack !!<br />
sed doesn&#8217;t stumble if there is no &#8220;mailto:&#8221; in the param</p>
<p>thanks <img src='http://www.howtogeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
