Mail.app and IMAP Folders
For some time, I've been annoyed by Mail.app not checking all folders every time it checks mail. My situation is that I have an IMAP server at a colo, a Mac Pro at home usually with Mail.app running and more importantly, running its filters, and a MacBook running Mail.app that I take with me to work or wherever.
The problem is that as mail comes in and gets filtered by the Pro, the laptop continues to check mail every minute. However it does not "see" messages that get filtered off. So if Dave sends me mail and it goes to the Dave folder, the only way I notice it is if I manually click that folder, which isn't happening.
So how do you fix it? I know there is probably a way, but I've not found an official answer to this in the months I've been looking, so here's what I've got that actually works.
Hit the Mailbox menu and select New Smart Folder. Use "Message is not in mailbox" rules if you don't want to check things like your spam folder (I have my spam stored on the server so if something gets filtered, I see it. Also make a rule to specify "Message Type" as "Mail" so it excludes any RSS feeds you have.
This should hit every folder you have, and when it does, it will actually "touch" that folder, and make the unread message count for that folder update. So what I've done was just collapse the "Smart Mailboxes" in Mail, and I'll probably forget that thing exists, since the unread message counts are now correct.
Woo, yay Apple. My life clearly isn't complicated enough. I'll update this with screenshots later, this is kind of a draft so I remember what I did.


I have this same issue
Did you ever find a workaround besides touching the folder? Quite a pain, isn't it? My setup is just like yours, except I do the arranging on an iPhone, and then the Mail.app on the desktop never rechecks the IMAP folders until I touch them.
-Matthew
matthewm@ambientideas.com
I think it's fixable
I haven't yet. I went back to Thunderbird, with its own set of annoying issues (no sort by received date? Really?), but I've been thinking that this should be apple-scriptable, and then set that up as a task that runs every minute or something. If I do write something and it works, I'll post it up.
I should spend some time in front of my Macs tonight and see if I can make that happen. Unfortunately at the office I'm on a PC running Linux, so I can't do too much during most of the day.
I have the same problem
I've been looking for a solution to this since Leopard came out. This used to work fine in Tiger. Any luck fixing this?
re: I have the same problem
I never actually had any luck with Tiger either, though it wasn't that big an issue to me at the time, so maybe I never noticed that it worked better. I was hoping Leopard would fix it, and I've been hoping for a fix in each point release.
Thunderbird has a tendency not to update exactly correctly either, but it's far more accurate than Mail.app has been. I might sit down and play with some scripts this weekend and try and hack something together. Honestly though, the lack of a decent GPG plugin has forced me down the Thunderbird road even more.