Mavericks GMail mailbox loses messages Even after the 7.0 (1822) update, Mavericks Mail is not keeping synchronized with the GMail IMAP server. A mailbox with hundreds of messages in it suddenly has only the latest added message. Then it will show only messages added since that message. 

I have tried mailbox Rebuild, re-checking mail, close Mail and open it again. Nothing seems to help. The messages in the Mail mailbox don't match what's in the filter by label on the web interface.

Is there a way to force Mail to re-synchronize a single Mail mailbox (to a GMail label) without deleting the entire account and spending another day or two rebuilding the whole database?

A related question asks about messages in Mail (inbox) that are not in GMail (inbox). This question is the reverse, messages in GMail (archived label) that are not in Mail (mailbox). The answer may or may not be the same!

NOTE: After 5 days of daily use, the mailbox has just restored itself. That's a long time to wait! Unfortunately, for the time being (until I detect a recurrence of the problem) it will be difficult for me to evaluate the effectiveness of solutions offered.
If it happens again, try the following:


Right click any Gmail folder that is missing messages and select "Get Account Info". 


This forces Mail to search through the entire Gmail account for messages and will restore missing messages in all folders for that account.

The missing mail problem occurred for me when I upgraded from Mountain Lion to Mavericks 10.9.1 with Mail 7.1 (1827). I had unsuccessfully tried:


clicking "Get new messages in all accounts"
synchronising the mailbox
taking the account offline and then back online
rebuilding the mailboxes
un-enabling the account, restarting Mail and then re-enabling the account.


Only getting the account info solved the problem for me.