Smart Mailbox not working with Gmail on Apple Mail - resets to no mailbox selected

I'm trying to sync Gmail with the Apple Mail client and setup a Smart Mailbox of important emails that are unread.

The Gmail emails sync correctly, in various folders as on Gmail. However, when I try to create a smart mailbox, they don't filter in and when you go to edit that smart mailbox, the filters reset. See images below:

Image 1: Smart Mailbox Settings

Image 2: Resets to 'No mailbox selected' after clicking ok (above)

Image 3: The Gmail mails are syncing and filtering correctly, as on Gmail.

The smart mailbox works for iCloud accounts though and Apple support wasn't helpful. They said it's Google's problem (even though that doesn't make sense) and even refused to create a ticket for further investigation.

Google says that since the emails are syncing and filtering, the problem isn't at their end, it is with the way the Apple Mail client works (and that makes sense).

Can anyone please help me with a fix here?

Hello,

I have the same problem, or sort of. Let me explain:

On my MBP, I have only one gmail account configured in Mail. Smart mailboxes are working fine and the Account parameter is of course set to the gmail account but it works. On my MBA, I have 2 gmail accounts and 1 iCloud account configured in Mail. The account parameter in smart mailboxes can not work with 1 of the 2 gmail accounts. Each time I try to set up with the gmail account I want, It is reset with the iCloud account and though, the smart mailbox does not work as I want to. Since I add on the MBP the iCloud mail account as a second mail account, the account parameter of the smart mailboxes is also reset to the iCloud mail account as default parameter. -> smart mail box does not work properly. When I delete the iCloud mail account and have only the gmail account, everything restarts to work properly in the smart mailboxes....

Ìt seems when there is an iCloud account configured, smart mailboxes consider the iCloud account as the only possible value for the account parameter.

Can someone else confirm this behavior? I googled but did not find any other website dealing with this topic.

I hope this can help to solve this issue on Apple's side.

Smart Mailbox not working with Gmail on Apple Mail - resets to no mailbox selected
 
 
Q