#2168 new
Mike Conley

Feature Request: Command-click to select and open URL in default browser

Reported by Mike Conley | November 10th, 2018 @ 05:42 PM

It would be extraordinarily handy if I could command-click in a URL string (http://...) in a piece of text and have MailMate automatically select the entire string and open it using my default browser. (I know how handy it would be because I used to do it all the time in Mailsmith and I miss this feature terribly.) One trick is parsing the URL across line breaks, which I know can make things difficult, but, hey.

Comments and changes to this ticket

  • benny

    benny November 20th, 2018 @ 12:34 PM

    Do you mean in the Composer? In that case fn-return should open it. It was buggy on Mojave though and therefore you currently need the latest test release.

    You also need “Edit ▸ Substitutions ▸ Smart Links” enabled.

  • Mike Conley

    Mike Conley November 20th, 2018 @ 12:45 PM

    This is very strange; I should have provided an example in my report, because now I have no idea what my problem was. Maybe it was the Composer settings, as you suggest, because I can't find an example in the Viewer in which I can't click on a URL.

    Oh, well. If I figure out what I meant, I'll update this ticket, I guess. Sorry about that.

  • benny

    benny November 20th, 2018 @ 01:43 PM

    • State changed from “new” to “cantreproduce”
  • Mike Conley

    Mike Conley November 21st, 2018 @ 03:04 PM

    Okay, here we go. This is, in fact, the notification from lighthouse about a change in one of the tickets I submitted. I've included the .emi file, a text dump of the raw message source, and a screen shot of what it looks like in my Viewer. Note that the URL in the message is not highlighted.

    This is on my home machine; the machine at work seems to be doing the right thing.

    I note also that I'm unable to save the Edit > Substitutions > Smart Links preference; no matter how I enable it, after quitting and relaunching MM, it has turned itself off. There is also no way to enable it unless a Composer window is open, so I don't even know if this option applies to messages in the Viewer.

  • Mike Conley

    Mike Conley November 21st, 2018 @ 04:06 PM

    And, actually, I'm noticing that none of the messages show clickable links in the Viewer on my home machine. I've attached my defaults for MM; any idea what I don't have set correctly?

  • benny

    benny November 22nd, 2018 @ 08:22 AM

    The setting for smart links does not apply to the viewer. Based on your screenshot we are dealing with “Prefer Plain Text” and therefore the display of a plain text message. Links should appear except if you have this preference disabled:

    defaults read com.freron.MailMate MmAutoLinkPlainTextURLsInHTML

    As far as I can see you don't use that setting. And I can see no issues with the files you provided.

    I'm kind of out of ideas... Maybe check the HTML generated using “Message > Show HTML Source”. See if these links really do not include <a href="...">....</a>.

  • Mike Conley

    Mike Conley November 22nd, 2018 @ 03:48 PM

    Well, here's your message:-

    </div><div dir="auto">--------------------------------------------------------------------------------
    </div><div dir="auto">
    </div><div dir="auto">Assigned: benny
    </div><div dir="auto">State: cantreproduce
    </div><div dir="auto">
    </div><div dir="auto">View this ticket online: https://freron.lighthouseapp.com/projects/58672/tickets/2168-feature-request-command-click-to-select-and-open-url-in-default-browser#ticket-2168-7
    </div><div dir="auto">
    </div><div dir="auto">Update your Profile: https://freron.lighthouseapp.com/profile
    </div><div dir="auto">Stop being notified of this ticket&#39;s changes:

    What I'm asking for is for MM to detect the https//... string in the text and highlight it so that I can click on it, whether or not it's part of an tag or even part of the HTML section of a message. The ability to click a link should be available even in plain text messages.

    But I guess you're saying is that MM should be doing that already, unless I have MmAutoLinkPlainTextURLsInHTML set to False, which I don't (in fact, I explicitly just set it to True and quit and relaunched MM, and it made no difference).

  • benny

    benny November 23rd, 2018 @ 08:49 AM

    That is correct. It should work by default. But MailMate is clearly involved since links are not generated in the output you see above.

    There's a primitive debug variable which we can also use to check the HTML generated:

    defaults write com.freron.MailMate MmDumpGeneratedHTML -bool YES

    Then launch from a Terminal window:


    This is just to make absolutely sure that nothing is generated. (I'll need to add more debug output to MailMate to see if MailMate tries to generate links at all.)

  • Mike Conley

    Mike Conley November 23rd, 2018 @ 03:07 PM

    I'm attaching the output from a run using your debugging option.

  • Mike Conley

    Mike Conley November 23rd, 2018 @ 03:11 PM

    Whoops. That didn't work. Here it is.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket