Agnostic.com
1 1

The Firefox default way of handling mailto links for Yahoo email works okay if the mailto link only contains a "to=" key:value pair. More than that, and it totally fails to fill in any fields on the Yahoo compose mail page. I'm not sure who is at fault here, it appears to be Firefox, because I can manipulate the value being sent to the Yahoo compose mail URL, and it works. In fact, I wrote a small bash script to do just that.

The problem with more than one key:value pair is that Firefox fails to replace the ? with & after the email address in the mailto link, so after the argument is appended to the URL (second line of script, the default in Firefox for Yahoo) it winds up with 2 ? characters, which I'm guessing causes Yahoo to reject all the URL parameters. So my script essentially does what Firefox should do, by replacing that second ? in the URL with &. It doesn't appear to handle all characters properly, like apostrophes, but I didn't want to get that much into the weeds.

#!/bin/bash
arg="https://compose.mail.yahoo.com/?to="
arg+=$(/bin/echo $1 | /bin/sed s/?/'\&'/)
#echo $arg
firefox --new-tab "$arg"

You'll have to save this in a file and make it executable. Then in Preferences > General : Applications, modify the mailto action by choosing "Use other..." and browsing the bash script file. This will add the script to the list of email entries. I typically have this set to "Always Ask" for various email services.

bingst 8 Apr 16
Share
You must be a member of this group before commenting. Join Group

Enjoy being online again!

Welcome to the community of good people who base their values on evidence and appreciate civil discourse - the social network you will enjoy.

Create your free account

1 comment

Feel free to reply to any comment by clicking the "Reply" button.

1

I use Thunderbird and multiple browsers (timtowtdi). For privacy reasons I rarely click on links (I hover first). I cut-paste them in search bar and usually remove everything from the first ? to the end (I try to avoid being tracked). I don't see anything useful to me in all that tracking crap -- just the facts ma'am (URL) is all I want. ymmv

Recent Visitors 7

Photos

Posted by FrayedBearAnyone using Android 12? Are you having problems with the Gmail app no longer working along with the PlayStore?

Posted by ScubaWagsWow, Windows 11 will have tiling windows. No one has ever done that before...

Posted by ScubaWagsThis made me giggle

Posted by OldMetalHeadThis is quite interesting. I knew Ubuntu would be high, but I honestly didn't expect it to be that high.

Posted by ScubaWagsApparently it's penguin awareness day today... I assume that must include Tux

Posted by hrichardson8Hey, I resemble that remark. [xkcd.com]

Posted by HiFiGuyHello, everyone! I'm new and I just wanted to say hello and share a little bit about myself.

  • Top tags#god #video #computers #religion #hope #religious #reason #atheism #friends #hell #evidence #apple #chinese #environment #sex #belief #hello #Bible #media #Atheist #evil #USA #faith #world #kids #corruption #government #humans #movies #community #rights #schools #joke #humanity #China #DonaldTrump #immoral #Australia #cultural #holy #NASA #dogs #Russian #military #nonbelievers #Christian #Awe #spirit #tech #agnostic ...

    Members 76Top

    Moderator