When I am doing some work on my macbook pro, Mail app's main window keeps popping up in the background, it even pops up when I watch movies by interrupting full screen. This is so frustrating, I can't find out solution to this, googled and went to many discussion forums, no luck, suggestions that I found are very old and outdated. Has anyone faced similar issues or does anyone knows solution to this?
I have the same issue: The google calendar stuff is nonsense. The notification settings suggestion doesn't work.
I've narrowed it down to the following:
I normally hit the red cross button on the viewer window once I have finished looking at my mail, this closes open viewer windows but leaves the mail app active in the dock:
So if I have mail running, but no viewer windows open, then I get a viewer window randomly popping up to the foreground a few times an hour.
If instead of hitting the red cross button, I minimise mail using the minus button, then I don't get any viewer windows randomly opening. In this scenario, the mail viewer window is minimised either on the right hand side of the dock or into the application icon itself, depending on your settings (System Preferences > Dock > "Minimize windows into application icon").
So I have changed my habits to work around this annoying bug...
Mail > Preferences > General, uncheck:
"Prefer opening messages in split view when in full screen."
⌘-W and ⌘-Q are your friends.
Maybe try to get in the habit of closing Mail when watching a movie? It'll save you this hassle, a little battery life, and I promise, your mail will still be there when your movie is over. :)
Maybe try a different mail app? The thing is, Mail.app has been a really wonky program since time immemorial. Its one of a handful of apps that has never once got a full rewrite (along with the likes of Grapher and Activity Monitor). So I wouldn't hold your breath for a fix for these mysterious stirrings. So, if you're someone who really prefers a good desktop email client, you might want to look at a program like Unibox (super slick, ~$15, and/or available through Setapp). Outlook 2019 isn't too bad either, although it is still Microsoft Outlook, so there's "a lot there".
Do you use Google Calendar? Google calendar event notification can cause Apple Mail app open.
I have solved this problem by removing my
IMAP) account. Since then no more pop-ups.
I found this answer on Apple Community website useful. It also works to my situation. I think the reason is the Mail app does not support 2-step authentication well. So don't use the Gmail portal to connect your Gmail, but generate an app password from Google website and manually set up your Gmail using the normal email portal in the Mail app.
you need to follow this way on top menu , but first you should fix google calendar step on google account settings. then; Mail > Accounts > Google and uncheck calendar. if you have multiple google account, apply this to all