Last week I shared a very strange Gmail IMAP issue that I was having: mail was delayed from 30 minutes to three days. Adding to the timeliness issues was the fact that mail wasn’t coming in chronologically, so I never knew if my Inbox was actually up to date even when mail starting coming in. All in all, a terrible experience. The Google Gmail team has been responsive in requesting additional information, which is great for a free service. However, it appears I’ve found the issue through some research and testing. Looks to be a corrupt mailbox on my local machine: specifically, on my MacBook Pro.
At first, I thought the issue was on the server side since I saw the problem in all of my clients: Outlook 2007 in both Microsoft Windows XP and Vista, Mac Mail on the MacBook Pro, my iPhone and even on the Gmail web client in different browsers and machines. It wasn’t until I started to run just a single client at a time did I shed any light on the issue.Over the past few week, I’ve spent time using one client for a full day. The issue seemed to be resolved once I did that, which had my rethinking my initial diagnosis of a server-side problem. Mail just started flowing and flowing when I used my Windows machines and Outlook, for example. Then I got to the web client and noticed that my Spam folder was queueing up without delay even though my Inbox wasn’t. Again, that was telling me the service was likely fine as items in the Spam folder wouldn’t be sent to my mail clients.At the end of the week, I fired up only my Mac Mail application in Leopard. Boom. The problems returned… on all clients; I checked them after a full day of Mac Mail only. From what I can see, my local mailbox database (if that’s how Mac OS X keeps the mail, that is) is corrupt. Based on what I saw last time in my prior blog post, the Activity window in Mail was showing a constant but slow synchronization of the Mail client with the Gmail server. It’s almost like the two are speaking a different language and the client keeps insisting it’s out of sync with the server… or vice versa… I can’t be sure.One way for me to force the mail to temporarily work was to use the Activity Monitor and manually stop the synchronization of the All Mail folder. All of the other mail tasks were stacked up behind it, so once I kill that, some mail begins to trickle in… at least for a short time.I did some research because my attempts at removing all of the Mac Mail items from /users/library/mail didn’t accomplish anything. I was hoping to remove all local traces of my original mail and mail settings, but even after removing everything from the directory and removing my Gmail account from the Mail Preferences, the Connection Doctor still shows the Gmail settings. Those settings are tucked away somewhere, but I can’t find them.My next attempt at resolving this will be to reinstall the Mail application. That’s tricky since the package is part of the Leopard disk and not natively broken out separately. A quick check on the Google tells me that Pacifist should help greatly in this situation, so I’ll give this $20 shareware a look. If that doesn’t work it looks like I’ll be reinstalling Leopard just to fix my Mail. Seems like overkill to me, so I’m hoping it doesn’t come to that.Actually, before I attempt to reinstall Mac Mail, I may move the “com.apple.mail.plist” file from the users/library/preferences directory based on this tidbit from Mac Users Forums. I’m open to other suggestions from folks smarter than me in the ways of Mac Mail.Ironically, I think about the “You get what you pay for” commentary that often accompanies any issues with Gmail. I could still be wrong about the root cause of the problem, but if not, it’s interesting that in this case the free solution is working fine; the $2,000 laptop with the advanced operating system might be the issue. ;)