Yahoo as default email client

January 17, 2008 at 10:41 pm (Gentoo)

I’ve had a Yahoo account since Yahoo was best of search engines (yes quite a bit ago) – I still like it. Instead of using my ISP provided email address I’ve just used Yahoo. Yahoo Mail can be used as the default email client instead of using Evolution, Thunderbird… in Gnome. In other words links that point to “mailto:” will open in mail.yahoo.com.

I use a hidden folder at home that contains all my scripts:

gedit ~/.bin/yahoo-mailto

This nice bash script will direct Epiphany mailto links to yahoo:

#!/bin/bash
qs=`echo $1 | sed ’s/mailto:/To=/’ | sed ’s/\?subject=/\&Subject=/’`
epiphany –new-tab “http://compose.mail.yahoo.com/?$qs”

Here’s an alternate as the above for some doesn’t always work:

#!/bin/bash
URL=$(echo $1 | sed ’s#mailto:##;s#?#\&#;s#\&subject=#\&Subj=#;s#(##;s#)##i;’)
epiphany –new-tab “http://us.f585.mail.yahoo.com/ym/Compose?To=$URL”

Make the script executable:

chmod +x ~/.bin/yahoo-mailto

To set it to the default application for mail in Gnome open Preferred Applications and select the script appended with a %s.

set email client

The script can also be used from the command line:

yahoo-mailto mailto:person@site.com

Thanks to Dhonn who built this bash script.

9 Comments

  1. Verkehrswertgutachten said,

    Yo, I find your blog truly informative and would only say WOw. Some information, I would like to find more precisely. If you are withholding information about this contribution did, it would really fond of you, tell me this.

  2. Dirk Gently said,

    Thanks Verkehrswertgutachten. I try not to be as true blue enclopedia brown-ish as is mortally possible. That said, at times I can be really superstituous.

  3. Nathan R. Hale said,

    This is great tip! I just posted a podcast on my site about integrating Gmail into the Linux desktop, and one listener asked how to this for Yahoo…thanks for the help!

  4. THINES said,

    HI

  5. THINES said,

    This is great tip! I just posted a podcast on my site about integrating Gmail into the Linux desktop, and one listener asked how to this for Yahoo…thanks for the help!

  6. Dirk Gently said,

    Absolutely NOOOO problem, glad it did help.

  7. aung said,

    HI

  8. Gen2ly said,

    Namaste! – Hindu language

  9. rhyann said,

    my yahoo acount needs to work on every computer

Post a Comment