My friend's computer (running the latest version Mojave) is experiencing that bug where mail.app suddenly — randomly? — and automatically takes focus while having his Google-account connected to it. I've seen others with this problem — and that it has been around for a while.
Is there a way to find out what is actually happening? A log file perhaps that shows what prompts the Mail app to take focus by itself? It only seems to happen with Google btw. So could it be something with certain Google accounts that forces Mail app to exhibit this behaviour? Any help or pointers in the right direction is much appreciated!
Suggested fixes to this that I've seen so far, have been elaborate workarounds that really doesn't deal with the problem itself, or even what the problem is.
~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail
. I can look into it this weekend. (notify me by @ankiiiiiii) – anki Sep 4 '19 at 19:52