As I was trying to sync my mail.app to gmail, it kept stalling, adding hundreds of the same email to ‘Recovered Mailboxes’ folder. Took a while to finally find the solution! So, I’ll pass it on for the next guy:
Please follow below steps.
1.Take your gmail account offline from Mail and delete the recovered messages folder.
2. Download the widget to show the hidden files from http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html
3. Go to UserName/Library/Mail/IMAP-<username>@firstname.lastname@example.org/.OfflineCache
4. Delete all the data under .OfflineCache folder – DO NOT DELETE the folder.
5. Close Mail application and reopen.
A solution to another problem on the Internet. It works! Apparently emails get stuck and hold up the sync, this fixes it if you can locate the offending email. In my case, the email was the lowest numbered one in this hidden directory – to verify, you can open them with textedit or other text apps. Delete it, then gmail should start syncing again, at least until the next problem email it encounters.
This post has already been read 1165 times!