Fix new message counts with Gmail IMAP and Mail |
|
|
IMAP with Gmail is an excellent solution for keeping email coordinated on multiple platforms. Unfortunately, the way that Mail.app and Gmail communicate means that there are a number of annoyances. My largest complaint is that the unread mail count is always double the real number. This disappears once the message is read in the inbox, but until then, it is misleading.My solution was to write a quick AppleScript that marks the unread message in the folder [Gmail]/All Mail as read immediately on retrieval:tell application "Mail" set unreadBox to mailbox "[Gmail]/All Mail" of account "Gmail IMAP" set unreadCount to unread count of unreadBox if unreadCount is not 0 then repeat unreadCount times set...
|