I am using Apple's mail program, version 5.0. My unread mail count in the IN box show's an unread mail, but there is none. In the past when this has happened, I had been able to rebuild each mail box and the problem went away. That's not happening this time.
I made a smart mailbox and told all unread mail to go to it. Nothing did. I have checked each and every mail folder I have and rebuilt each one. I still have the one unread mail in my mailbox.
Does anyone have any idea how to fix this? This just happened since upgrading to Lion. I know it's not a BIG problem, it just bothers me.
Close the mail program.
In your library ( ~/library/ ) mail>mail data folder there are several "envelope" files, ie. envelope, envelope-shm, envelope-wal... remove these to your desktop... incase you want to put them back.
Restart mail, it will rebuild these files probably correctly.
If satisfied, drag the old versions"envelope" files on your destop to the trash.
Alternative, OnyX is a Mac utility that has a "rebuild envelope files" option, does the same job.