News for hackers. Stuff that matters.
Re:Mailgo, a new concept of mailto and tel links by emersion on Thursday September 10, 2020 @05:35AM (#24430520)
Would be better solved with a user-agent implementation I think. Let local apps and webmails advertise support for mailto links, make the user-agent display a dialog and let the user pick one.

We're almost there, the only issue is that there's no declarative way to advertise support for mailto links, webmails need to ask the user.

Re:Mailgo, a new concept of mailto and tel links by browserface on Thursday September 10, 2020 @07:40AM (#24431308)
Yes there is. It's called "navigator.registerProtocolHandler"[0]

[0]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/r...

Re:Mailgo, a new concept of mailto and tel links by emersion on Thursday September 10, 2020 @11:35AM (#24433282)
Not declarative, which means users would need to know they have to go to settings and enable it.
Re:Mailgo, a new concept of mailto and tel links by untog on Thursday September 10, 2020 @11:56AM (#24433490)
It shows a prompt to the user when you run the code, they don't need to go near settings.
Re:Mailgo, a new concept of mailto and tel links by browserface on Sunday September 13, 2020 @01:51AM (#24458706)
Nope that's now how it works. It does show a prompt. Also, not sure how "going to settings" is "not declarative"...? :) ;p xx
Re:Mailgo, a new concept of mailto and tel links by progval on Thursday September 10, 2020 @06:52AM (#24431006)
> the only issue is that there's no declarative way to advertise support for mailto links, webmails need to ask the user.

What's the alternative? You can't let any website register a handler for mailto without asking the user

Re:Mailgo, a new concept of mailto and tel links by londons_explore on Thursday September 10, 2020 @09:33AM (#24432194)
Let any website register a handler for mailto links.

Get the OS/browser to show a list of registered handlers when a mailto link is clicked.

Order the list by frequency of use so random websites you visited 5 years ago stay nicely below the actual one you want to use. Also maybe unregister or hide anything not visited for 30 days, so yo'd have to revisit the site to reregister it.

Re:Mailgo, a new concept of mailto and tel links by Joker_vD on Thursday September 10, 2020 @11:34AM (#24433277)
Doesn't Firefox do it already? I've just clicked on a mailto link and it asked me whether I'd like to go to gmail.com or to launch the external program... but then again, normally I don't ever click on mailto links, because I don't usually write e-mails anyway, and when I do, I just select and copy the e-mail address, then paste it into the "To:" field.
Re:Mailgo, a new concept of mailto and tel links by tenryuu on Thursday September 10, 2020 @07:46PM (#24437801)
Firefox has an option for the application (or website) to open a mailto link with. It's lacking Outlook OWA though. You can find in the preferences panel where all default 'open with' settings are
Re:Mailgo, a new concept of mailto and tel links by progval on Friday September 11, 2020 @07:15PM (#24448329)
Then you need to prevent any website from registering a ton of handlers, even through redirection or links to other (sub)domains.