Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

open link in viewer window

#1276

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.

Kindest
Mike

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

State: accepted
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • 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.

    September 30th, 2015 @ 09:00 AM

  2. Michael A Osborne
    Michael A Osborne

    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.

    September 30th, 2015 @ 10:59 AM

  3. benny
    benny

    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?

    October 1st, 2015 @ 12:39 PM

  4. Michael A Osborne
    Michael A Osborne

    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?

    October 1st, 2015 @ 12:50 PM

  5. benny
    benny

    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?

    October 1st, 2015 @ 12:58 PM

  6. Michael A Osborne
    Michael A Osborne

    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!

    October 1st, 2015 @ 01:01 PM

  7. benny
    benny

    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:

    /Applications/MailMate.app/Contents/MacOS/MailMate
    

    October 1st, 2015 @ 01:05 PM

  8. Michael A Osborne
    Michael A Osborne

    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.

    October 1st, 2015 @ 01:12 PM

  9. Michael A Osborne
    Michael A Osborne

    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!

    October 6th, 2015 @ 05:39 PM

  10. benny
    benny

    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).

    October 6th, 2015 @ 09:24 PM

  11. Michael A Osborne
    Michael A Osborne

    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!

    October 7th, 2015 @ 07:27 AM

  12. Michael A Osborne
    Michael A Osborne

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

    October 7th, 2015 @ 07:29 AM

  13. benny
    benny

    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?

    October 7th, 2015 @ 07:39 AM

  14. benny
    benny

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

    So, any other pattern?

    October 7th, 2015 @ 07:51 AM

  15. Michael A Osborne
    Michael A Osborne

    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!

    October 7th, 2015 @ 08:18 AM

  16. benny
    benny

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

    October 7th, 2015 @ 08:19 AM

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.