#1276 accepted
Michael A Osborne

open link in viewer window

Reported by Michael A Osborne | September 30th, 2015 @ 08:43 AM

Dear Benny

Is it possible to use mailmate to open message:// links within a viewer window? When following such links, it would be very useful to be able to quickly view the entire thread associated with a message, and to access the other functionality possible within a viewer window. The current behaviour for my system (Mailmate r5141, OSX Yosemite 10.10.5) is to open the message in a separate window, which is less useful.

Many thanks in advance for any help, and thanks again for your excellent work on Mailmate.


Comments and changes to this ticket

  • benny

    benny September 30th, 2015 @ 09:00 AM

    • State changed from “new” to “accepted”

    It's not currently configurable. The workaround is to hit ⌥⌘S which opens the email in its IMAP mailbox.

    I'll consider how to make it configurable.

  • Michael A Osborne

    Michael A Osborne September 30th, 2015 @ 10:59 AM

    thanks heaps Benny. I wasn't aware of the very helpful ⌥⌘S shortcut, which I've briefly tested. Unfortunately, it doesn't seem to work if the message is in the Archive.

  • benny

    benny October 1st, 2015 @ 12:39 PM

    Are you sure about the “Archive”. I cannot see how this feature would depend on the mailbox folder. Maybe something else triggers it to fail?

  • Michael A Osborne

    Michael A Osborne October 1st, 2015 @ 12:50 PM

    You are, of course, right, and my apologies for sending through a half-baked response. After a little more testing, it seems that it is not the mailbox folder that causes the shortcut to fail. Instead, the ⌥⌘S shortcut fails when used on a message opened from a link created using the "Copy as Link" action. The ⌥⌘S shortcut works as intended on messages opened by double-clicking. Does that explanation make more sense?

  • benny

    benny October 1st, 2015 @ 12:58 PM

    Yes, but I still cannot reproduce it. I took the latest arriving email, used Copy as Link, and then did like this in a Terminal window:

    open "message://%3cb64271f2eb26aa9d8e750ccae2e85db6ab1387a1_5@freron.lighthouseapp%3e"

    Then I hit ⌥⌘S and it worked fine. Could you explore a bit more and see if there is some other pattern/trigger?

  • Michael A Osborne

    Michael A Osborne October 1st, 2015 @ 01:01 PM

    To confirm, my running

    open message://%3cb64271f2eb26aa9d8e750ccae2e85db6ab1387a1_6@freron.lighthouseapp%3e

    yields a new window for which ⌥⌘S doesn't work. Double-clicking on the same message gives a new window for which ⌥⌘S does work.

    Sorry to not be able to give more informative news!

  • benny

    benny October 1st, 2015 @ 01:05 PM

    I'll have to look at the code for finding potential problems. You could try launching from a Terminal window and then see if any errors are output when the shortcut fails. Just paste this line in a Terminal window and then trigger the issue:

  • Michael A Osborne

    Michael A Osborne October 1st, 2015 @ 01:12 PM

    Good news! Launching from a terminal window solved the problem: I can now use the shortcut on any window, opened from link or otherwise. Indeed, relaunching mailmate via other means also seems to fix the problem for those other instances. I apologise for wasting your time, but hope it was useful for some other purpose.

  • Michael A Osborne

    Michael A Osborne October 6th, 2015 @ 05:39 PM

    A brief update: The problem has recurred, but I'm still no closer to working out the cause. This time, restarting mailmate has not fixed the problem. Any experiments that you suggest that I could run would be appreciated.

    In detail, the problem is that, for some messages, many of the options in the "Message" menu are unavailable (greyed-out). This includes send, edit as new message, move to mailbox, attach files, go to source, show in finder and go to mailbox. No error message is produced in the Terminal window; the command is just unavailable.

    I still haven't figured out the pattern between which messages suffer from the problem. It's certainly not all messages opened from links, but it is most of them. I'm sorry this is so vague: I'm struggling to think of hypotheses.

    Thanks again!

  • benny

    benny October 6th, 2015 @ 09:24 PM

    This behavior means that MailMate does not think it knows the message. In other words, it handles it as a temporary message which is not located in any IMAP mailboxes. This explains all the greyed-out stuff.

    I assume we are still dealing with the message: URL scheme and the open command.

    Could you share one of the Message-IDs. Maybe MailMate does not handle it correctly (the format of the Message-ID could be the trigger). Preferably the raw Message-ID line in the message (⌥⌘U).

  • Michael A Osborne

    Michael A Osborne October 7th, 2015 @ 07:27 AM

    Here's an emblematic example: open message://%3cCAEnnZbMddhOhzGZpZ3UZTsFQCH+AgwuJg3+5kbjoowcuUcV78g@mail.gmail.com%3e opens a window that contains two identical copies of the same message. They both have an idential Message-ID: Message-ID: <CAEnnZbMddhOhzGZpZ3UZTsFQCH+AgwuJg3+5kbjoowcuUcV78g@mail.gmail.com>.

    I hadn't noticed the fact that two copies of the same message are opened previously: is that a possible cause of the problems? Thanks!

  • Michael A Osborne

    Michael A Osborne October 7th, 2015 @ 07:29 AM

    satisying my own curiosity, open message://CAEnnZbMddhOhzGZpZ3UZTsFQCH+AgwuJg3+5kbjoowcuUcV78g@mail.gmail.com produces exactly the same result as above.

  • benny

    benny October 7th, 2015 @ 07:39 AM

    I couldn't reproduce it with multiple messages either.

    Just to make sure, it still works for some messages while it doesn't work for others? If yes, do you see any pattern between those that do and those that don't.

    A wild guess might be that it could be related to some messages being embedded in other messages. In fact, that matches your observations quite well. Do you forward many messages as attachments?

  • benny

    benny October 7th, 2015 @ 07:51 AM

    I tried the forwarding theory, but that did not reproduce the problem.

    So, any other pattern?

  • Michael A Osborne

    Michael A Osborne October 7th, 2015 @ 08:18 AM

    Another possible clue: the following warning in the Terminal is produced for problematic messages:

    Warning: UID 47933 already exists in the destination mailbox ([Gmail]/Archive) as message 391709
    I'll keep testing and get back to you if I can turn up anything more concrete. Thanks again!
  • benny

    benny October 7th, 2015 @ 08:19 AM

    Thanks. This error message is not related. It's just a side-effect of the weird IMAP variant used by Google.

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