[MlMt] Status: Gmail authentication issues

Benny Kjær Nielsen mailinglist at freron.com
Tue Sep 6 08:32:31 EDT 2016


Hi,

another update on the Gmail issue experienced by some users last week. 
I've gotten no more reports (and no logs), but I've located some 
potential issues when/if Google has issues with returning new refresh 
and/or access tokens. At the same time I moved part of the code to a 
separate thread. Unfortunately this also means an increased likelihood 
that I've introduced new issues.

Here is a direct download for any users with Gmail accounts who would 
like to help me verify that I haven't broken something: 
https://updates.mailmate-app.com/archives/MailMate_r5261.tbz

(It's not available via the Software Update mechanism in MailMate.)

Thanks in advance.

-- 
Benny

On 3 Sep 2016, at 7:43, Benny Kjær Nielsen wrote:

> Hi everybody,
>
> I've gotten surprisingly little feedback on this problem (for some 
> users it has simply disappeared) and I've got no example logs yet 
> (logs as described in the original message further below).
>
> One hint is a user reporting that MailMate did not update the keychain 
> with new tokens after re-authentication, but this user no longer has 
> the issue. My current theory (*based on very little*) is that the 
> problem is something like this:
>
> 1. Google has a temporary problem and rejects valid refresh tokens.
> 2. Google has a temporary problem and rejects returning a new refresh 
> token (when re-authenticting).
> 3. MailMate fails to report when 2. fails.
>
> I'm mainly writing to the list, because I have very little time for 
> work today. I'll be looking into item number 3 tomorrow.
>
> -- 
> Benny
>
> On 2 Sep 2016, at 9:31, Benny Kjær Nielsen wrote:
>
>> Hi everybody,
>>
>> based on the number of emails during the night about Gmail 
>> authentication issues then I'm now going to assume this is a MailMate 
>> issue. Possibly a new issue or something that got worse when I tried 
>> to fix it after the first reports (before the 1.9.5 beta was 
>> released). I'll do my best today to learn more and hopefully fix or 
>> workaround something. (Don't expect replies to any other issues until 
>> after this is resolved.)
>>
>> Read on if you have issues with MailMate asking to re-authenticate 
>> Gmail accounts. I'll start out with possible ways to make it stop and 
>> then I'll describe how to help me (if you have time).
>>
>> # Possible workarounds
>>
>> ## Switch to an older release of MailMate
>>
>> The public version: 
>> http://updates.mailmate-app.com/archives/MailMate_r5234.tbz
>> The last test version before the 1.9.5 features (almost as old as the 
>> public version): 
>> http://updates.mailmate-app.com/archives/MailMate_r5249.tbz
>> The last version before I changed anything OAuth2 related: 
>> http://updates.mailmate-app.com/archives/MailMate_r5255.tbz
>>
>> ## Switch to password based access
>>
>> Open the IMAP account editor via the File menu and disable OAuth2 
>> authentication. This is **only** going to work if Google allows it 
>> for the particular account. I think this can be configured somewhere 
>> in the Gmail web settings, but Google regularly tightens the screw on 
>> this one.
>>
>> # How to help
>>
>> I'm still not seeing any issues with my own 2 Gmail accounts and 
>> therefore I cannot reproduce it. Here's how to generate as much data 
>> as possible for me with the current debug variables.
>>
>> 	defaults write com.freron.MailMate MmLoggingEnabled -bool YES
>> 	defaults write com.freron.MailMate MmDebugXOAUTH2 -bool YES
>>
>> Then launch MailMate like this (if MailMate is in `/Applications`):
>>
>> 	/Applications/MailMate.app/Contents/MacOS/MailMate
>>
>> Wait until you have seen the issue once or twice and then
>>
>> * Use “Help ▸ Send Server Logs”.
>> * Include the output from the Terminal window.
>> * State the OS version and MailMate version used (I'm interested in 
>> any MailMate version having this issue in order to narrow it down).
>>
>> Thanks in advance. Don't forget to disable the debug output:
>>
>> 	defaults delete com.freron.MailMate MmLoggingEnabled
>> 	defaults delete com.freron.MailMate MmDebugXOAUTH2
>>
>> # Other ideas?
>>
>> I'm open for ideas, but I'm also a bit swamped by emails. Keep it 
>> short :)
>>
>> -- 
>> Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20160906/87e98f3c/attachment.html>


More information about the mailmate mailing list