Smart mailbox unread counts wrong

After upgrading to Mavericks, my smart mailboxes' unread counts are all wrong. I've tried restarting mail and rebuilding mailboxes and recreating the smart mailboxes, but still they are wrong.

Got from other post the following instructions. After following these steps my problem is solved. Hope this works for all of you:
Quit Mail if it’s open.
In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.
Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
Open Mail.
Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

Similar Messages

  • "Updating smart mailbox unread counts"

    I am never able to quit Mail now because this single "activity" keeps it from quitting. The thermobar just hangs there nearly half-way through.
    Even clicking on the stop sign in the Activity window only produces:
    "STOPPING: <smart mailbox name>"
    ..which never stops.
    I have tried rebuilding all of the mailboxes, deleting the offending "smart" mailbox and creating a new one (only to have a different "smart" mailbox cause the same problem), etc.
    The only way out is to force-quit Mail, which I really hate to do (I never want my mailbox, indexes, etc. scragged).
    Does anyone else have this problem? I must admit that there are so many smart mailbox postings that I wasn't able to paw through them all looking for similar behavior.

    I would try rebuilding the whole Mail index. quit mail and delete the file homedirectory/library/mail/envelope index. start Mail and let it import. see how things are after that.

  • Smart Folder Message Count Wrong

    I have a smart folder set up to show me all flagged messages. The folder list on the left of the Mail window displays the number of messages in the folder, but it is constantly wrong. Right now, it says there are three messages but when I go to the folder there are none!
    I've tried deleting the smart folder and recreating multiple time with the same problem each time.
    Any ideas on how to fix this?

    I have the same issue, still. Most of the replies in the forum say to rebuild the mailboxes the flagged messages are in. This does seem to work but its a hassle because if you are organised and have quite a number of mailboxes it's laborious to find the offending mailbox. Also rebuilds sometimes make otherwise read messages unread again. I've tried rebuilding the flagged smart mailbox as someone suggested but didn't reset the count for me.
    Be wonderful if the powers that be could fix this issue, it's been around for a long time... I've just given up in the hope that one day it'll be solved

  • Smart Mailbox Message Counter

    Is it possible to have a Smart mailbox in the Mailbox pane on the left side of the Mail window show the number of messages in the Smart Mailbox and not just the number of unread messages? What would be most desirable is a indication like "3/7" where the 3 indicates 3 unread messages and 7 indicates the number of all message read and unread.
    Thank you in advance.
    Jeff Cameron

    I guess there is no answer. I will post this as an enhancement request with Apple.

  • Smart mailboxs does not show any content.

    I have a 27" iMac, late 2009, running iOS 10.10.2.  None of my smart mailboxes show any content.  I have rebuilt my mail and checked the smart mailbox conditions.  I created a new smart mailbox, Unread, Delivered this week, and still no content.   Thanks,

    Have you reindexed your mail by deleting these three Envelope files from the Users/Home/Mail/V2/MailData folder and rebooting?

  • Unread counts on "rules" destination folders not updating

    Since I installed Leopard a few days ago I have a minor mail (3.1) issue. I use "rules" to distribute the mail to specified folders as it comes into the in box. The minor problem is that the unread counts on the destination folders is not always updating until they are clicked on. Anyone else see this? Normal? Fixable?

    I've been having the same problem ever since I upgraded from Tiger to Leopard -- new mail messages that are directed to IMAP mailboxes via rules don't always change the unread mail count of the mailbox until I switch to that mailbox.
    These are some of the steps I've taken to try and narrow the problem:
    + Disabled the use of the IDLE command (I'm not sure if my dovecot version 0.99.11 IMAP server supports it or not). Didn't seem to affect the problem.
    + Added a new rule (seemed to work okay -- unread count increased when mail was delivered to the mailbox). Since the problem seems more or less intermittent I'm not sure if this proves anything.
    + Removed old rules and replaced them with new rules that do the same thing. Still intermittent.
    + Tried clicking the "Get new mail in all accounts button", and it didn't update the unread count.
    A theory:
    + Some of these mailboxes are rather large. I'm wondering if that has anything to do with it. I've noticed that the "waiting" icon is displayed for about 5 seconds on one of the mailboxes.
    An oddity:
    + When I'm sitting here and an email message arrives and is moved to a mailbox via a rule, I hear the new mail sound, so I know the Mail application at some level is aware of this new message, but the mailbox unread count doesn't change until I switch to the mailbox.
    Some configuration information:
    + IMAP server (dovecot 0.99.11). Remained constant when I switched from Tiger to Leopard.
    + I leave all of my mail in mailboxes on the server.
    + I did have one interesting thing happen during the Tiger to Leopard upgrade that might be relevant -- after the upgrade, I had two "IMAP Account"s each with a copy of all of the mailboxes that are on the server. I'm guessing this somehow happened because I use either direct LAN access or ssh-tunnel access (when I'm on the road) and switch the name (and IP address) of the server as appropriate. Somehow this gave me two identically named accounts during the upgrade (one of the incoming mail servers was "ssh-tunnel" which is the host name I use for the ssh tunnel). I managed to remove one of them, but all of the mailbox settings in my rules disappeared and needed to be re-added.
    Any suggestions are welcome -- it's not fun "polling" mailboxes to see if someone has sent you mail and is awaiting a response!

  • Smart Mailbox Counter is Wrong

    Kind of strange, if I create a smart mailbox to show, for instance, only emails which have arrived today, the counter at the top of the box is wrong. For instance, at the top it says "(4 messages)" but there are only 2 messages in the window.
    I tried rebuilding my Inbox, Trash and Sent boxes but that didn't make a difference. (Although I did get a very strange result from the rebuilding... hundreds of emails I long ago moved to other boxes for storage, or deleted, were restored and marked as unread. As a result I don't want to try that again.)
    Message counts in other non-smart mailboxes, ie, Inbox, are correct.
    Any thoughts?
    thanks, Paul D.

    Got from other post the following instructions. After following these steps my problem is solved. Hope this works for all of you:
    Quit Mail if it’s open.
    In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.
    Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
    Open Mail.
    Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

  • Unread messages count is wont for Smart Mailbox

    Has anyone else noticed that a smart mailbox has a non-zero unread message count but as soon as it is clicked on the count is reset to zero? Zero is correct because all of the messages have been read. I've tried rebuilding the inbox but it hasn't helped. I also recreated the smart mailbox but that didn't help either. Sounds like a bug to me but I wonder if others have experienced it. I am using Mail Tags so that is a possible complication.

    Same problem here with Yahoo mail.  Sometimes it works, sometimes it doesn't.  I have looked at Yahoo mail from all folders in my phone (running 7.0.3 now), as well as in a browser, looked at Inbox (empty), all Trash, Sent, etc. folders and they're completely empty on Yahoo servers.
    I thought that 7.0.3 had initially cleared up this issue but it has reappeared, and I don't know how to fix it.

  • How to show mail count in smart mailbox?

    I have a smart mailbox that displays messages from a specific local folder/mailbox for the current day.  The counter next to this smart mailbox is only for unread messages.  Is there a way to change the counter so it displays for all messages in the current day (read and unread)?

    It works on a new install on a new computer... so its obviously from the upgrade... it happens on mine as you have described... but setup a new computer for a client and they got message counts on their smart folders...

  • Unread Mail Count wrong after Time Machine restore

    I, and others on this forum seem to have an unsolved issue having restored from Time Machine backup, so presumably a glitch somewhere in the restore system.
    We have followed the normal advice of rebuilding mailboxes, but it doesn't help.
    Does anyone have an answer to how to reset the unread mail count to zero other than trash all the accounts and manually 'rebuild'
    Thanks
    Stephen

    Hi,
    I cannot take credit for this solution - I found the answer to this by searching through the Mail discussion forums. Another user had 3 emails that he had read, but they were still showing up in his Mail Badge Counter and this is how he fixed it.
    The super-simple-solution:
    Create a "Smart Mailbox" and set it to only contain all unread mail messages. This will grab all of the emails that Mail "thinks" are unread and is marking as such in the badge counter. Select all the emails, mark as read... and you're good to go.
    Hope this helps.

  • How to get accurate count of contents of smart mailbox?

    I have a smart mailbox defined as "sender is a member of a group x" and "date received is within last 2 days." When I click on it, Mail indicates "(8 messages)" -- but there are only 7 listed. I've tried the sqlite3 ~/Library/Mail/Envelope\ Index vacuum command in Terminal, I've rebuilt the individual mailboxes making up this count (and the smart mailbox itself) and I even deleted the smart mailbox itself and recreated it, to no avail.
    Any other suggestions for getting a correct count?

    Is it possible that mysterious 8th message is one you deleted, but is still registering as being there, even though you can't see it? Have you tried enabling the View > Show Deleted Messages command to see if it appears then?
    If that command shows you nothing, then you can completely rebuild your Mail index to see if that solves your problem:
    1. Quit Mail.
    2. Go to Home/Library/Mail and remove (+*do not delete yet*+) the Envelope Index file to the Desktop.
    3. Restart Mail and let it import your existing mailboxes. When that's done, your index will be brand new and with any luck that message should no longer show up in a count. Now you can delete the Envelope Index file you removed previously.
    Mulder

  • Smart mailbox for Unread messages doesn't update automatically.

    Hello everyone.
    I've set up a smart mailbox in Mail to show only my unread messages.  But, it doesn't update automatically in that when I read a message, that message remains visible in the list until I leave and then return to the "Unread Messages" smart mailbox.
    Any thoughts as to how I can get it to update automatically?
    Thanks very much.....

    Thanks for the note, Jeffrey and trust me when I say I'm a die-hard Apple believer.  But, at work I support Windows machines and Outlook has views to show only unread messages.  As soon as a messages is read and we move on to the next messages, the read message drops out of the list.  This is what I'm look for so that I can apply it to the few Macs I also support at work.
    What Apple's Mail gives us is good, but what we were hoping was to have the smart mailbox work the same way that Outlook's feature does.  However, I still much prefer working with Mail rather than with Outlook.  So, we will adjust.  
    Thanks again.

  • How to create "Unread Junk" Smart Mailbox?

    I am trying to create a Smart Mailbox that will show all of my unread messages that Apple Mail has marked as junk and moved into junk mail folders. It doesn't seem to work.
    You can see from the screenshots below that I have unread junk mail, you can also see that I have a smart mailbox set up to show any unread messages in junk mail, but they don't show up. I thought that changing the selected mailbox from the "parent" all inclusive junk mail mailbox to an individual junk mailbox would fix it, but it didn't work. Any ideas how to set this up so I can see my unread junk mail in a smart mailbox?
    Thanks!

    I do not use gmail and know next to nothing about it, but you can probably find some help for the two step verification here. You may need to put a password on the app in order for it to work properly.
    http://www.google.com/search?client=safari&rls=en&q=two+step+password+gmail&ie=U TF-8&oe=UTF-8
    If you do not see that Edit button in the main mail window like I described, then the email account is not IMAP. I'm not familar with gmail, but I think that it can be set up as IMAP. The edit button that you are seeing may be for you to move email to the trash, or to archive your email. Gmail is a little differnt than what I am used to in the way that it works.
    Look for help.
    http://support.google.com/mail/?hl=en

  • Unread Messages From Exchange Trash Show Up In Smart Mailboxes

    Hi
    I have five accounts configured in Mail.  I have two smart mailboxes set up to show selections of messages e.g. Home Inboxes is supposed to show messages in the inboxes of my private accounts.  It is configured like this:
    Strictly speaking the second condition shouldn't be necessary as the Include messages from Trash option is not checked.  However, despite all this, deleted messages on an Exchange account I have still show up in the smart mailbox:
    As you can see there are messages in there that are in Trash. 
    I've tried rebuilding all the mailboxes but that doesn't seem to help.  I can create new smart mailboxes with the similar condition logic and they don't work either.

    Actually I just noticed that it doesn't matter if they are unread or not. 

  • My Smart mailboxes are messed up in Mavericks

    Does anyone have a fix for my messed up smart mailboxes?
    The counts are wrong and the filtering I set up doesn't seem to work.
    For example, I have an 'unread' smart mailbox which shows 1 unread message but has a count of 7.
    I have another mailbox called 'recent' set to exclude shopping and forum related email: it's all in there and the count is wrong too.
    (Sorry if there's any bad spelling - Safari doesn't pay attention to my 'Check Spelling' setting any more under Mavericks)

    Here's what I did to fix it (but I cannot confirm that it stays fixed): I redid my spotlight index. Mail uses spotlight to implement its smart mailboxes.
    Here's how I did it:
    open Terminal app
    sudo mdutil -E /
    mdutil is the unix command to manage the meta data store (which is what implements spotlight) and the -E argument means "erase and rebuild the index". Here's the output from my Terminal session (my laptop name is montepulciano):
    $ sudo mdutil -sa
    Password:
              Indexing enabled.
    /.MobileBackups:
    2013-10-26 22:45:23.563 mdutil[4242:507] Metadata.framework [Error]: mdsCopyStoreAttributes failed: (8) (os/kern) no access
              No index.
    /Volumes/Main:
              Indexing enabled.
    /Volumes/Main/Backups.backupdb:
              Indexing enabled.
    [montepulciano:22:45:23::~]
    $ sudo mdutil -E /
              Indexing enabled.
    [montepulciano:22:45:49::~]
    $
    After I ran the last command my CPUs got very busy and it took about an hour to rebuild the index.

Maybe you are looking for

  • How to incorparate managed metadata functionality in a web part

    Hello, I'm writing a web part that manipulates a list's managed metadata field . I want to give to the users all the functionality that SharePoint gives, like realtime searching, the popup window to add a new term and so on. I was thinking of (someho

  • Missing queues for created indexes

    Hi, I'm trying to enable the search function for e-recruitment. TREX is installed and in the ERP 6 system, the customising to create the SSR has been performed, the document class to be indexed set up etc. and the settings have been checked in SKPR07

  • Cast date

    I need to cast the "first day of week value": Calendar cal = Calendar.getInstance(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); int intweek = cal.get(Calendar.WEEK_OF_YEAR); cal.set(Calendar.DAY_OF_WEEK,Calendar.MONDAY); cal.set(Calendar.WEE

  • IPhone 4s: Slide wifi is not selectable. Always gray and wifi does not work!

    i have Slide wifi is not selectable iPhone 4s. Always gray and wifi does not work. Help me!

  • 4.0 update?

    Does anyone know if they are working on an update for 4.0? Because my phone doesn't send mms anymore and I dont have any 3g or edge connection anymore. I know I can restore the phone as a brand new one but I don't want to go through all of that.So im