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.

MailMate keeps needing to reauthenticate with Google

#2911

Hello,

I've been a MailMate user for years now and have seldom, if ever, encountered any problems. However, about two-three weeks ago, MailMate started to prompt me for authentication with Google (the OAuth flow, where Google asks you permission for MailMate to read your e-mail and such) almost every single day. Sometime, within 5 minutes of the last prompt. Once, it even went into a loop, where it would prompt me for authentication immediately after I had just gone through that process. I had to take to mailbox offline, kill the app, restart it, bring it online, authenticate again once or twice, and then it stopped asking for a while. I have no idea why this is happening, as far as I can tell it's completely random. Sometimes, I switch over to MailMate only to discover that my inbox is offline and I haven't been receiver e-mail for hours.

I'll be happy to provide any information necessary to solve this issue, but this is getting close to a deal breaker for me. Is there anything that can be done?

Kind regards,

Gabriel

Reported by Gabriel Shanahan · October 1st, 2021 @ 03:34 PM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    I don't know of any general problems with Gmail OAuth2. Try sending me a screenshot of your IMAP account settings window via “Help ▸ Send Feedback” and I'll see if anything is out of the ordinary.

    Any special network conditions which might affect this, that is, something which might make MailMate fail and then (wrongly) assume it needs re-authentication?

    October 3rd, 2021 @ 09:19 AM

  2. Gabriel Shanahan
    Gabriel Shanahan

    Sent the screenshot. Network conditions haven't changed for months, and there are no 'specialities' involved - no proxies, no hw firewalls or anything similar, just my laptop connected via cable/wifi to our home router, which is connected directly to our ISP.

    Are there any logs I could collect in MailMate when the issue happens?

    October 3rd, 2021 @ 09:25 AM

  3. benny
    benny

    Your settings look fine. Before debugging any further I'd like you to try the latest test release: r5831. This is just to make sure I'm not debugging something which has already been fixed.

    Open the Activity Viewer in MailMate to enable logging (⌥⌘0). Use MailMate until you have experienced a round of re-authentication and then send me logs by using “Help > Send Server Logs”. Do not relaunch MailMate when doing this (since logs will then be lost). If you cannot make it connect then create the email with the logs and then send it after relaunching/reconnecting.

    October 3rd, 2021 @ 09:27 AM

  4. Gabriel Shanahan
    Gabriel Shanahan

    Thanks! I'll let you know.

    October 3rd, 2021 @ 09:33 AM

  5. Gabriel Shanahan
    Gabriel Shanahan

    Just a quick update: I haven't had the issue since upgrading to r5831, and I feel like it would have almost certainly happened at least once within 3 days. Will continue to monitor and let you know.

    Unfortunately, it now happens that, after some time, MailMate starts to drain 60% of my CPU, without there being any apparent need - there is no fetching going on or anything else. It stays that way until I kill it and restart. Any idea what that might be about? I wanted to attach a video of my Activity Monitor, but it doesn't seem to be possible to add attachments.

    October 6th, 2021 @ 05:17 PM

  6. benny
    benny

    Thanks for the update. First, fetch r5834. When you see CPU issue then use the Activity Monitor to “Sample” the process. Send me the resulting file using “Help > Send Feedback”.

    October 6th, 2021 @ 05:58 PM

  7. Kaji Ryoji
    Kaji Ryoji

    @benny I'm having the same issue with my outlook email. Do you have any idea why? I'm using the lastest alpha

    November 29th, 2021 @ 10:44 AM

  8. benny
    benny

    @Gabriel: I believe the CPU issue has been fixed.

    @Kaji: First, make sure to update to the latest test release: Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane. If the issue persists then search for com.freron.MailMate in Keychain Access. Try deleting the tokens related to the problematic account and see if that helps. If not, use “Help ▸ Send Feedback” to send me a screenshot of your IMAP account settings window.

    November 29th, 2021 @ 02:03 PM

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.