Gmail Fluid.app as default mail? Problems with mailto: links

367 views
Skip to first unread message

Matthew Farrow

unread,
Sep 11, 2009, 11:33:19 PM9/11/09
to fluidapp
Hi, all - new to Fluid but I love the idea. I am currently trying to
use a Gmail Fluid.app as my default mail client in 10.6.1, and
_almost_ everything works. The big problem I'm having at this point
is mailto: links.

Here's the scenario: I have my Gmail Fluid.app open (in the dock,
behavior is set to maintain last window on close to preserve web
content,) and I click on a mailto: link in Firefox. If I have Firefox
set to use Gmail (the default Firefox Gmail setting changes mailto:
links to https://mail.google.com/mail/?extsrc=mailto&url=%s) then it
works fine, but it opens up a Gmail tab in my browser. If I set
Firefox's default mail to Gmail.app (Fluid SSB,) then it opens the SSB
up with the mailto: link directly. The SSB window shows the loading
screen for Gmail but never gets to the compose window.

The URL that Gmail.app is trying to load is:

http://mail.google.com/mail?view=cm&fs=1&to=pro...@fluid.app - not
working.

If I let Firefox load up Gmail in a new tab, the URL loaded is:

https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=problem%40fluid.app
- works fine.

I'm not a programmer, and I'm utterly lost on user scripts. Can I
just use a script to change the URL's from the first case to the
second? If so, I'll need help writing the script.

Nic Pottier

unread,
Sep 29, 2009, 2:18:49 PM9/29/09
to fluidapp

Sadly I'm not any help, but I have the exact same problem. I've just
learned to copy/paste, but it is a shame.

If it makes any difference I'm on Snow Leopard, running the gears
hack.

-Nic

On Sep 11, 8:33 pm, Matthew Farrow <mfar...@gmail.com> wrote:
> Hi, all - new to Fluid but I love the idea.  I am currently trying to
> use a Gmail Fluid.app as my default mail client in 10.6.1, and
> _almost_ everything works.  The big problem I'm having at this point
> is mailto: links.
>
> Here's the scenario:  I have my Gmail Fluid.app open (in the dock,
> behavior is set to maintain last window on close to preserve web
> content,) and I click on a mailto: link in Firefox.  If I have Firefox
> set to use Gmail (the default Firefox Gmail setting changes mailto:
> links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> works fine, but it opens up a Gmail tab in my browser.  If I set
> Firefox's default mail to Gmail.app (Fluid SSB,) then it opens the SSB
> up with the mailto: link directly.  The SSB window shows the loading
> screen for Gmail but never gets to the compose window.
>
> The URL that Gmail.app is trying to load is:
>
> http://mail.google.com/mail?view=cm&fs=1&to=prob...@fluid.app - not
> working.
>
> If I let Firefox load up Gmail in a new tab, the URL loaded is:
>
> https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=prob...

Steve

unread,
Sep 30, 2009, 6:07:11 PM9/30/09
to fluidapp
It appears to be the missing "&tf=1" that's breaking the SSB. Seems
like this should be an easy fix. I hope it gets corrected soon.

On Sep 11, 11:33 pm, Matthew Farrow <mfar...@gmail.com> wrote:
> Hi, all - new to Fluid but I love the idea.  I am currently trying to
> use a Gmail Fluid.app as my default mail client in 10.6.1, and
> _almost_ everything works.  The big problem I'm having at this point
> is mailto: links.
>
> Here's the scenario:  I have my Gmail Fluid.app open (in the dock,
> behavior is set to maintain last window on close to preserve web
> content,) and I click on a mailto: link in Firefox.  If I have Firefox
> set to use Gmail (the default Firefox Gmail setting changes mailto:
> links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> works fine, but it opens up a Gmail tab in my browser.  If I set
> Firefox's default mail to Gmail.app (Fluid SSB,) then it opens the SSB
> up with the mailto: link directly.  The SSB window shows the loading
> screen for Gmail but never gets to the compose window.
>
> The URL that Gmail.app is trying to load is:
>
> http://mail.google.com/mail?view=cm&fs=1&to=prob...@fluid.app - not
> working.
>
> If I let Firefox load up Gmail in a new tab, the URL loaded is:
>
> https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=prob...

Steve

unread,
Sep 30, 2009, 6:12:53 PM9/30/09
to fluidapp
BTW, it looks like "Compose New Message" in the dock context menu is
broken for the same reason.

On Sep 11, 11:33 pm, Matthew Farrow <mfar...@gmail.com> wrote:
> Hi, all - new to Fluid but I love the idea.  I am currently trying to
> use a Gmail Fluid.app as my default mail client in 10.6.1, and
> _almost_ everything works.  The big problem I'm having at this point
> is mailto: links.
>
> Here's the scenario:  I have my Gmail Fluid.app open (in the dock,
> behavior is set to maintain last window on close to preserve web
> content,) and I click on a mailto: link in Firefox.  If I have Firefox
> set to use Gmail (the default Firefox Gmail setting changes mailto:
> links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> works fine, but it opens up a Gmail tab in my browser.  If I set
> Firefox's default mail to Gmail.app (Fluid SSB,) then it opens the SSB
> up with the mailto: link directly.  The SSB window shows the loading
> screen for Gmail but never gets to the compose window.
>
> The URL that Gmail.app is trying to load is:
>
> http://mail.google.com/mail?view=cm&fs=1&to=prob...@fluid.app - not
> working.
>
> If I let Firefox load up Gmail in a new tab, the URL loaded is:
>
> https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=prob...

Henry Bridge

unread,
Oct 6, 2009, 8:54:55 PM10/6/09
to fluidapp
I was also annoyed by this issue and couldn't find a solution, so I
wrote a userscript as you suggested. Below is the source, hope it
works for you:

// ==UserScript==
// @name FluidGmailComposeFixer
// @namespace http://fluidapp.com
// @description Fixes Fluid's gmail compose link
// @include https://mail.google.com/mail/*
// @author Henry Bridge
// ==/UserScript==

(function () {
if (window.fluid) {
var currentLocation = window.location.href;
if (currentLocation.indexOf("fs=1") != -1
&& currentLocation.indexOf("&tf=1") == -1){
window.location = window.location + "&tf=1";
}
}
})();

you'll need to change the @include line if you're not forcing https or
if you're using apps for your domain.

enjoy!

Henry

On Sep 11, 8:33 pm, Matthew Farrow <mfar...@gmail.com> wrote:
> Hi, all - new to Fluid but I love the idea.  I am currently trying to
> use aGmailFluid.app as my default mail client in 10.6.1, and
> _almost_ everything works.  The big problem I'm having at this point
> is mailto: links.
>
> Here's the scenario:  I have myGmailFluid.app open (in the dock,
> behavior is set to maintain last window on close to preserve web
> content,) and I click on a mailto: link in Firefox.  If I have Firefox
> set to useGmail(the default FirefoxGmailsetting changes mailto:
> links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> works fine, but it opens up aGmailtab in my browser.  If I set
> Firefox's default mail toGmail.app (Fluid SSB,) then it opens the SSB
> up with the mailto: link directly.  The SSB window shows the loading
> screen forGmailbut never gets to the compose window.
>
> The URL thatGmail.app is trying to load is:
>
> http://mail.google.com/mail?view=cm&fs=1&to=prob...@fluid.app - not
> working.
>
> If I let Firefox load upGmailin a new tab, the URL loaded is:
>
> https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=prob...

Steve

unread,
Oct 8, 2009, 11:23:36 PM10/8/09
to fluidapp
Thanks Henry!! This works great except I can't get out of the compose
view. It loads the new email in the main window and if I hit send it
shows "message sent" and if I hit discard it basically does nothing.
How do I either get it to load the new email screen in a tab or make
it go back to the inbox correctly?

On Oct 6, 8:54 pm, Henry Bridge <hbri...@gmail.com> wrote:
> I was also annoyed by this issue and couldn't find a solution, so I
> wrote a userscript as you suggested.  Below is the source, hope it
> works for you:
>
> // ==UserScript==
> // @name        FluidGmailComposeFixer
> // @namespace  http://fluidapp.com
> // @description FixesFluid'sgmail compose link
> // @include    https://mail.google.com/mail/*
> // @author      Henry Bridge
> // ==/UserScript==
>
> (function () {
>     if (window.fluid) {
>         var currentLocation = window.location.href;
>         if (currentLocation.indexOf("fs=1") != -1
>             && currentLocation.indexOf("&tf=1") == -1){
>                 window.location = window.location + "&tf=1";
>         }
>     }
>
> })();
>
> you'll need to change the @include line if you're not forcing https or
> if you're using apps for your domain.
>
> enjoy!
>
> Henry
>
> On Sep 11, 8:33 pm, Matthew Farrow <mfar...@gmail.com> wrote:
>
>
>
> > Hi, all - new toFluidbut I love the idea.  I am currently trying to
> > use aGmailFluid.appas my default mail client in 10.6.1, and
> > _almost_ everything works.  The big problem I'm having at this point
> > is mailto: links.
>
> > Here's the scenario:  I have myGmailFluid.appopen (in the dock,
> > behavior is set to maintain last window on close to preserve web
> > content,) and I click on a mailto: link in Firefox.  If I have Firefox
> > set to useGmail(the default FirefoxGmailsetting changes mailto:
> > links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> > works fine, but it opens up aGmailtab in my browser.  If I set
> > Firefox's default mail toGmail.app(FluidSSB,) then it opens the SSB
> > up with the mailto: link directly.  The SSB window shows the loading
> > screen forGmailbut never gets to the compose window.
>
> > The URL thatGmail.appis trying to load is:
>
> > http://mail.google.com/mail?view=cm&fs=1&to=prob...@fluid.app- not

Henry Bridge

unread,
Oct 29, 2009, 1:56:17 PM10/29/09
to fluidapp
can't figure out a good solution to this unfortunately. you can
change the last line from:

window.location = window.location + "&tf=1";

to:

window.open(currentLocation + "&tf=1", "Compose");

which will open a new window for the compose, but it won't prevent the
main gmail page from changing too. to get back to the main gmail page
in the main window, you can always press command-shift-h. I'll update
if I think of anything more elegant. I don't know why fluid isn't
respecting the "open pages from other programs in new window" pref.

G-Tam

unread,
Dec 4, 2009, 2:39:58 PM12/4/09
to fluidapp
You could try using Google Notifier for Mac as well. It's definitely
not ideal, but it sort of solves the problem. Just choose the Gmail
Flui.app in "Compose to" in preferences.

On Oct 29, 9:56 am, Henry Bridge <hbri...@gmail.com> wrote:
> can't figure out a good solution to this unfortunately.  you can
> change the last line from:
>
> window.location = window.location + "&tf=1";
>
> to:
>
> window.open(currentLocation + "&tf=1", "Compose");
>
> which will open a new window for the compose, but it won't prevent the
> maingmailpage from changing too. to get back to the maingmailpage
> > > > use aGmailFluid.appas mydefaultmail client in 10.6.1, and
> > > > _almost_ everything works.  The big problem I'm having at this point
> > > > is mailto: links.
>
> > > > Here's the scenario:  I have myGmailFluid.appopen (in the dock,
> > > > behavior is set to maintain last window on close to preserve web
> > > > content,) and I click on a mailto: link in Firefox.  If I have Firefox
> > > > set to useGmail(thedefaultFirefoxGmailsetting changes mailto:
> > > > links tohttps://mail.google.com/mail/?extsrc=mailto&url=%s) then it
> > > > works fine, but it opens up aGmailtab in my browser.  If I set
> > > > Firefox'sdefaultmail toGmail.app(FluidSSB,) then it opens the SSB
Reply all
Reply to author
Forward
0 new messages