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.

Similar Messages

  • 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.

  • 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

  • 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...

  • 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.

  • "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.

  • 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.

  • Can I sync Mailboxes? Or do they need to be Smart Mailboxes?

    Hi all,
    Awhile back (sometime during OSX 10.3 or so), I set up several different mailboxes in Mail to help me organize my emails. For example, I have one mailbox dedicated to receipts that have been emailed to me, which I keep indefinitely for tax purposes. Another mailbox is for a certain email discussion list I belong to, in which I keep certain emails with information I'd like to keep on hand.
    Now, fast forward to today. I use both my G4 iMac and my Intel iMac to check for mail. And, of course, my inboxes are perfectly synchronized. However, not so with my mailboxes. For example, if, on my G4, I drag an emailed receipt from my inbox to my "receipts" mailbox, the email doesn't show up at all when I open up Mail on my Intel iMac, since it's no longer in my Inbox. So, there's no way to access the receipt from that computer. I have to boot up my G4 iMac to access that particular email.
    Is there a way to sync my mailboxes up? Or do I need to periodically archive my mailboxes on one computer and restore those archives on my other computer to do a type of "manual sync" between the two computers?
    Or, should I just change them all over to Smart Mailboxes? Smart Mailboxes will sync up automatically won't they? And I can drag emails from my inbox to a smart mailbox, right?
    Thanks for your help!
    Kevin

    The answer should actually be in your Mail's built in Help system.
    Assuming you're using a MobileMe email account it's very easy to keep your folders in sync as long as you use IMAP. I may be wrong but it sounds like the mailboxes you're trying to sync are in fact stored on your Mac and not in the server. in the list of mailboxes in Mail do you see the mailboxes listed under "MY MOBILEME" or "ON MY MAC"?
    Smart mailboxes are just mailboxes that automatically gather together emails that match the criteria specified by you.
    In Apple Mail Help search for "mailboxes" for lots of info about mailboxes, including syncing. Also search for "IMAP" if you don't know what that is.
    If you're using another email service other than MobileMe then you can still do the automatic syncing of mailboxes if IMAP is supported. Gmail for example supports it.

  • Mavericks Mail: Cannot exclude meeting.ics attachments from Smart Mailbox

    I'm trying to set up a smart mailbox in Mail (Mavericks 10.9.2) that searches for all email containing attachments, but excludes all meeting invitations (attachments with name = meeting.ics). Sounds simple, but I cannot figure out how to do it.
    I've got two filters in the smart mailbox:
    Contains Attachments
    Any attachment name > does not contain > meeting.ics
    Any ideas as to what I'm doing wrong and how to fix this?

    Tried all the fixes described.
    Mac User for >23 years.
    More than 30 Macs all types purchased
    Never had such a problem as with mail in mavericks.
    What a disaster!
    First time I have complained about an apple product.
    Fix this ASAP.
    Pretty please!

  • Can't get smart mailboxes to work with "message has flag = color"

    I'm trying to set up a Smart Mailbox that will find all the messages to which I've assigned a green flag.  This should be easy, right?
    Unfortunately, this isn't working -- I definitely have messages with green flags in my inbox, but they're not being collected into the smart mailbox. 
    I've also tried this:
    but it doesn't work either.
    Is this broken in Mavericks?  Am I doing something wrong?

    Re Eric: Arggh -- the first image (which went into the comment form but didn't show up) was of the "create smart mailbox" dropdown, which tested "match all rules: message has flag = green".  The second image tested "match all rules: message is flagged & message has flag = green".
    Re William: I'd like to have one smart mailbox for green flags and another for purple flags.  The colors here were just meant to be examples.

  • Smart mailbox not working correctly

    I just created a new Smart Mailbox (I have others that work fine) and the criteria I put in was not what I needed and so I edited it. After closing out my mail and then reopening it, my Smart Mailbox had reverted to the old criteria and showed no messages again.  After doing this several times, I deleted the mailbox entirely and then recreated a new one with a different name.  All was working fine UNTIL I closed my mail and the next time I opened it, it had reverted to the old Name and criteria and was not giving me any mail again b/c the criteria was wrong.  Can anyone help??  I am OS X - Yosemite.

    David needs to get extra points for slipping in the Princess Bride reference.
    As he points out, this smart mailbox rule should exclude all messages not from THIS calendar year--2007. If you want all messages older than one year, do date received is not in the last 12 months, and it should give you what you want.
    G4 933 mhz Quicksilver   Mac OS X (10.4.9)   Wacom Intuos 2 tablet; Epson 2400 Photo; HP Deskjet 6840; LaCie 80gb D2 FWDV

  • Number of messages in Smart Mailbox

    A question & some relavent thoughts:
    In Mail, the number of Unread messages is shown the right of each mailbox.  But what are the total number messages?   Alternatively, how many Read messages are there?
    I have many folders.  I am trying to create separate mailboxes for each important (to me) Sender.  Then it would be possible to find out how many messages were in 1 Smart Mailbox not contained in any other Smart Mail Box by
    1. having a Smart Mailbox containing all mail, and
    2. specifying conditions: From ...  Does not contain ...   Sender
    3. for each Sender
    This would be very tedious if one receives mail from many senders.  However, if
    1. all senders belong to at least 1 Group,
    this might be onerous but at least feasible.
    If however,there were a Smart Mailbox condition:
    2. Group ...  Does not contain ...   Sender,
    then this would feasible witnout being too onerous.
    If anyone has any answers and/or suggestions,  I would be very happy to receive same!
    Chuck

    I have had the same problem as well and could not find any way of fixing it! Also when I changed the name of the folder the message count disappeared for a while and then seemed to come back later... very bizarre.
    Anyway, I may have found a solution after spending all afternoon searching the internet on macosxhints. [Link goes to the specific hint].
    I would advise making a complete back-up of your ~/Library/Mail folder before trying this, though. When I did this it seemed to re-import some messages and mark them as unread for some unknown reason. However, I went through and marked them all as 'read', and I have the same number of messages in each mailbox as I did before I tried this, so I can only assume that things are the same as before.
    One thing has changed, however! I no longer have a false number on the 'Flagged' messages smart mailbox! (Although if you have lots of messages marked as 'flagged' it may clear the flag - not sure).
    2Ghz iMac G5   Mac OS X (10.4.4)   4G iPod

  • How do you make smart mailbox sorting options persistent?

    I have a smart mailbox that I would like to sort based on flags, and I would like for this selection to persist from session to session. I thought I remembered this working in Lion, but for some reason it's not working for me in Mountain Lion:
    In the smart mailbox I can select "sort by flags," and this sorting option will persist next time I start mail -- but only if I have selected the smart mailbox when I close mail. If I have one of the other mailboxes opened when I close mail (say the Inbox), then the sorting of my smart mailbox defaults back to "sort by date."
    Any idea what I'm doing wrong?

    You only have to right click on this folder and edit the smart folders rules.
    Edit: Nevermind, you mean sorting with this pop-up menu. I didn't read exactly what you mean. For this I don't know what to do.

  • Smart Mailbox When Using The Subject Condition

    Hi
    Apologies if this is already a know issue.
    I created the following Smart Mailbox to find mails with attachments, but to exclude those that were related to iCards...
    [] Contains Attachments
    [] Subject Does not contain iCard
    This appeared to work until I noticed that a number of expected mails were missing from the list.
    The mails that were missing appeared to have no subject, but the "(no Subject)" filler was not displayed.
    Using View->Message->Raw Source showed that the value for Subject was a single space.
    Messages which did not have a value for Subject were retuned.
    Something appears to be wrong with the way a Smart Mailbox deals with email subjects that are simply a single space and 'Subject' is one of the conditions.
    Has anyone else come across this ?
    Regards
    Richard
    G4 MDD, Graphite G3 iMac, Performa 6400/180 & SE30    

    You’re welcome.
    OK, so I’ve tried this myself, and it appears to be a bug. It seems that received messages that only contain spaces in the Subject never satisfy any smart mailbox [Subject] condition, not even a [Contains/Begins with/Ends with] <space> condition.
    Interestingly enough, sent messages with only spaces in the Subject do work as expected. In particular, if you send a message to yourself with a subject that’s blank or only contains spaces and check Include messages from Sent in the smart mailbox definition, the sent message will appear in the smart mailbox whereas the received one won’t.
    If you want this to be fixed, you may report it in one of the following places:
    http://www.apple.com/macosx/feedback/
    http://developer.apple.com/bugreporter/

Maybe you are looking for