Message count in Mail doesn't agree with emlx count in Finder

I was checking a recent backup and I noticed the number of .emlx messages in:
~/Library/Mail/[email protected]/INBOX.mbox/Messages
did not agree with the message count Mail (Version 2.1.1 (752.3)) gave in the title bar for the Inbox of that account. In fact, the number of files in:
~/Library/Mail/[email protected]/INBOX.mbox/Messages
was almost 1000 and the count given in Mail was about 175. Of course, this is not good. My immediate reaction was to rebuild that mailbox. I did so and now the numbers agreed, but there were 100 messages in that Inbox that were not there before (messages going back several months that had been filed away or deleted long ago). In addition, a number of messages that were read before, were now marked as unread.
Being rather worried about this (I heavily depend on Mail), I proceeded to check several other mailboxes and found that many of them had .emlx Finder numbers that did not agree with the count shown in Mail. Should all these mailboxes be rebuilt?
Finally, for several of my mailboxes, when I rebuild them, huge numbers of messages that were read before are then marked as unread. If I mark those messages as read and rebuild the mailbox, the same thing happens again -- they are unread. This doesn't sound normal either.
Can anyone give me some insight as to what is going on here with Mail and how to fix these issues?
Thank you.
2.16 GHz MacBook Pro   Mac OS X (10.4.9)   2GB RAM, 7200 RPM HD

All I can tell you is that, rather than rebuilding each and every mailbox, you’d better re-create the entire index. That won’t fix the read/unread issue, though. Apparently, Mail sometimes fails to permanently store the read/unread status in the *.emlx file itself, and hence, that information is lost every time the mailbox is rebuilt or the index is re-created — don’t ask me why.
Verify/repair the startup disk (not just permissions) first, as described here:
The Repair functions of Disk Utility: what's it all about?
After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
1. Quit Mail if it’s running.
2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is locally stored.
3. Locate Envelope Index and move it to the Trash. If you see any other “Envelope Index”-named file there, delete it as well.
4. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index — Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

Similar Messages

  • Apex report result doesn't agree with the result of sql developer

    Hello guys,
    at the moment I try to create a standard report which takes his content from several spreadsheets. Because of some problems with the searchbar I'm not able to use an interactive report. The sql query contains a function, which sets some space characters into the content of a column. But there is a big problem. When I call my sql query in apex from the spreadsheets the result doesn't agree with the result which affords the sql developer.
    I know that the sql developer affords the right result.
    best regards
    wderr
    Edited by: user9072567 on 07.02.2010 12:57

    thats the query:
    select "TWORKITEM"."WORKITEMKEY",
    "TWORKITEM"."PROJCATKEY",
    "TPROJECT"."LABEL",
    "TWORKITEM"."PACKAGESYNOPSYS",
    replace(replace("TWORKITEM"."PACKAGEDESCRIPTION", chr(10), '<br>'),'<td></td>','&lt;td&gt;&lt;/td&gt;') packagedesc,
    suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY") "CHANGEDESCRIPTION"
    from "TWORKITEM" "TWORKITEM", "TPROJECT" "TPROJECT", "TPROJCAT" "TPROJCAT"
    where "TWORKITEM"."PROJCATKEY" = "TPROJCAT"."PKEY"
    and "TPROJCAT"."PROJKEY" = "TPROJECT"."PKEY"
    and (instr(upper("TWORKITEM"."WORKITEMKEY"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY"))) > 0
    or instr(upper("TPROJECT"."LABEL"), upper(nvl(:P10_SEARCHTEXT, "TPROJECT"."LABEL"))) > 0
    or instr(upper("TWORKITEM"."PACKAGESYNOPSYS"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGESYNOPSYS"))) > 0
    or instr(upper("TWORKITEM"."PACKAGEDESCRIPTION"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGEDESCRIPTION"))) > 0
    or instr(upper(suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY")), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY")))>0
    I mean with spreadsheets some tables/charts. And I take those informations from 3 of them.
    regards
    wderr

  • "Sent" folder in Mail doesn't sync with "Sent" folder on Gmail. PLEASE HELP!!!!

    I am completely stumped by this and really REALLY frustrated.
    I can't figure out how to make the "sent" folder in mail (i.e the one with the paper plane icon) contain ALL my sent messages from Gmail.
    It works perfectly fine on my iPhone and iPad but just not mail on my mac!!!
    I am using Mail version 4.5 and Snow Leopard.
    PLEASE someone HELP!!!
    Thanks

    I'm new here so you'll have to bear with me if my explanation needs work!
    I suspect that your problem may be that your Mac is storing the sent stuff on the local folder (probably hapening with junk and trash too???) If this is the case then...
    Make sure you have the correct IMAP path prefix - entered in Mail Preferences > Accounts > Advanced - I believe that the prefix you need is Gmail
    Quit Mail so it doesn't interfere with what you're doing,
    Open  ~/Library/Preferences/com.apple.mail.plist with the Property List Editor
    Take a back up copy (I saved mine to desk top) of com.apple.mail.plist
    Look for the key named MailAccounts and click the arrow to expand it
    you should see all your accounts indexed as 0, 1, 2, etx
    Find your IMAP accounts (check that the key AccountType is IMAPAccount)
    Find the key SentMessagesMailboxName and change it to Gmail/Sent (substitute INBOX for IMAP Path Prefix if incorrect)
    Find the key TrashMailboxName and change it to Gmail/Trash
    I think I had to do the same with junk too
    Hope that is of some use or at least makes enough sense :-)

  • ICloud Mail doesn't work with Maverick

    Hi
    I bought a new iMac last week and migrate my profiles from my old MacBook Pro.
    After I configured iCloud i noticed that Mail doesn't work. All other stuff like calender, contacts etc works fine...
    Mail seems to not load the icloud account. But with other mail accounts like hotmail it works.
    Than i made a new user profile and tried if icloud work there. And it works. So my problem must be on my user profile.
    I tried to restore permissions, without success.
    I installed Maverick again, without success.
    Please help me, I'm getting crazy.

    Hello antoniode,
    Congratulations on your new iMac!  Also, thank you for providing the details of the issue you are experiencing with your iCloud email account. 
    You have taken some really good troubleshooting steps already.  I recommend continuing with the steps in the sections titled "If you can't send mail in OS X Mail" and "If you can't receive mail in OS X Mail" in the following article:
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/ts4002
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Delete email in mavericks mac mail doesn't work with google app

    Hello,
    I've got a macbook pro retina. I've received it with mavericks pre-installed, I've done the update to 10.9.1.
    I got a google app account it was use previously with mac mail on mac os X 10.8.
    I've resetup it with the all mail settings imap shown. The "Auto-Expunge on" is set to  "- Immediately update the server. (default)"
    The problems are:
    - each time I delete a message in inbox it re-appear if I click on another folder (like sent) and go back to inbox.
    - if I move a message from inbox to a local folder it doesn't move it, It copy it. Before mavericks that feature was working.
    Could you tell me what are the right settings in google app mail to set to work well with mavericks?
    Thanks a lot, this new mac mail app is hard to work with...

    18 ways to view the ~/Library folder in Lion | Macworld

  • Att.mail doesn't work with firefox yet is great with IE or google chrome. Won't delete,move or reply

    yahoo comes up, then in switching to mail, the mail appears and I can look at each piece. However, the delete, move, and reply buttons are not responding. Also, I can't generate a new message. The system works fine with IE or Google Chrome.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Mac Mail doesn't send with parentheses in signature...

    I met with someone at the Apple Genius Bar today to try and troubleshoot a problem I've been having with sending mail via Comcast.
    In short we were able to find a workaround  I decided to post what we concluded in the case that someone else can clarify or benefit from what we learned... which is that any parentheses in the e-mail signature prevents the e-mail from being sent.
    We attempted, almost 40 e-mails, of various configurations of the signature which contained a phone number.  regardless of its position, formatting including newline characters, when the phone number didn't have the parentheses the mail sent.
    And all these tests occurred with a fresh new e-mail account which by default set perfectly every time. Attachments, pasted and graphics, made no difference. All the previous mailboxes were also removed and plans were trashed so we were starting from a clean start.
    This is with Mail version 4.5 and OS 10.6.8 on an iMac... I can't go to mail 5 I need to run Rosetta.

    I'm getting a similar problem. Snow Leopard Mail for me seems to be choking on large attachments - sending them, forwarding them, or even moving them from one IMAP folder to another.
    My mails are getting through, but it takes a long time and they are dragging the whole system to a crawl in the process.

  • Mail doesn´t open with in-box

    Hello !
    Since 2 weeks or so mail opened with a folder "october12" and not with the in-box.
    I try to "highlight" in-box, close mail and open it again, but still the same.
    What can I do to make mail open with the in-box ?
    Thanks in advance !

    What happens in the Safe Mode?
    Safe Mode - About
    Safe Mode - Yosemite
    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.Safari.plist. Move the .plist to your desktop.
    Restart, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • Mail Doesn't Up With Latest E-mail

    I'm not sure this is a problem, but it's something I find strange about Apple Mail. When I open the application, my Inbox is highlighted in the "Mailboxes" list on the left, which is good. And I can see a list of all the messages in my Inbox to the right of that, but none of them are selected.
    Ideally what I'd like is for the latest/newest message to be automatically selected, so that it appears in full below so that I can read it. Is there a way to do that?

    Whichever mailbox is selected in the mailboxes drawer when the application is quit will be the selected mailbox when the application is launched but I'm not aware of a way to have the latest/newest message received automatically selected.

  • Search in body of mails doesn't work with iCloud

    Apple says "If you’re looking for a specific email, you can now search in the body of messages." on its iOS 5 page. This is true for my Gmail and Fastmail account (both IMAP) but NOT for iCloud/MobileMe.
    Can anybody confirm this?

    I would also like to know what's going on with this. Very irritating that search (in email) is so hit n miss when Apple get is so right on the desktop software.

  • I updated to firefox 9.0.1 and my yahoo mail doesn't work with firefox. This is a serious issue for me.

    A few days ago I updated to firefox 9.0.1, and when I am using firefox in the My Yahoo account, I can see my emails, but when I click on one to open it, I am asked to put in my password for yahoo. This shouldn't occur because it already know who I am because I can see my name there and my emails etc. When I put in my password it doesn't accept it.

    The location bar is also known as the address bar, it is where you enter web addresses.
    When it crashes does it submit any crash reports? If it does can you post some of the crash report IDs as that may help somebody identify the cause of the crashes. For details of how to get the crash report IDs see the [[Firefox crashes]] article.

  • Undo delete message command in Mail Exchange account doesn't work post Yosemite

    Before I installed Yosemite on my MacBook Air, I was able to undo a message deleted in Mail Exchange 2010 account with menu command (Undo Delete Message) or Command-Z.  Even with recent updates to 10.10.1 which were supposed to address Mail-Exchange 2010 account issues, it does not work. I have to go into deleted messages and manually restore to Inbox.  Is anybody else having this problem?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail Feedback

  • I have just agreed to software updates on my imac and now can't open my mail.  There is a message saying this version of mail isn't compatible with this latest software.  I have located the updated mail in the applications folder but it won't open. Help!

    I have just agreed to software updates on my imac and now can't open my mail.  There is a message saying this version of mail isn't compatible with this latest software.  I have located the updated mail in the applications folder but it won't open. I don't have the original operating software disk.  Does anyone have any suggestions?

    Your reply suggests that you have moved Mail to a different location, which (as I said) will prevent it from being properly updated. You cannot use Mail 4.5 with any recent version of Mac OS X. Mac OS X 10.7 (Lion) included Mail 5 and Mac OS X 10.8 (Mountain Lion) includes Mail 6. I'm assuming that you have either Lion or Mountain Lion, but if that is incorrect, you will need to provide that information.
    At this point, you will need to reinstall your system. Hold down command-R at startup and reinstall the system right on top of the old one. This should not disturb any of your documents or applications, though you should have backups beforehand in case something goes wrong. And at this point, with your system in an uncertain state (I don't entirely know what you have done to it), something could go wrong.
    You will also want to delete the old copy of Mail 4.5, wherever that is. You can't use it.
    In the future, do not move any of the preinstalled applications. Leave them where they are.

  • Ping authorization via e-mail doesn't work. I have an iTunes account but must seek authorization for Ping. I don't know why this is but I never get an e-mail message with the link. Why?

    Hi. I use iTunes for podcasts and to burn MP3s from audible.com. It works great except PING. I need to confirm my identity to the PING server. It purports to sen me an e-mail but I never get it. Why is this?

    Hello Ulrich,
    thank you for your answer. Concerning the dataflow I agree and it is what I usually do. Actually I follow the dataflow paradigm whenever there is no problem (the 'false case' in the screenshot):
    “FW102x Initialize.vi” -> “FW102x Get Position.vi” -> “FW102x Set Position.vi”.
    Whenever there is a mistake, this just doesn't work with these drivers. The sequence
    “FW102x Initialize.vi” -> “FW102x Get Position.vi”  -> ///error/// -> “FW102x Close.vi”, “FW102x Reset.vi”  ;; “FW102x Initialize.vi”
    will give me errors for “FW102x Close.vi”, “FW102x Reset.vi”  and “FW102x Initialize.vi” reporting "session handle not valid". However, if I "bypass" the instrument handles directly from the first "Initialize" to "Close" and "Reset", they will report the same error, but the second "Initialize" will work again. I can even merge the first two frames and execute "Close" and "Reset" at the same time to do so. But whenever I try something else, e.g. do the 'correct' wiring, I am unable to close, reset or reinitialize. I have to restart LabView completely, to make the vi work again. So I guess the session is still hanging around somewhere in memory, but I can't access it anymore.
    Surprisingly, wherever I put Probes on the data handle wires they show the correct "ASRL5::INSTR" (with or without correct wiring). But only the "Bypass" wire makes the vi work. Since you couldn't find the drivers in the driver network, I guess they might just run into problems, if an error occurs.
    But thanks for your comment anyway. The problem is fixed for the moment. It's just that I prefer to actually know what I am doing here instead of producing some code I'd rather not show anyone.
    Carsten

  • The character count when sending a message doesn't work with the new iOS 5.

    Hi,
    After I upgraded to the new iOS 5, the message counter no longer appears.  I've gone into the settings to verify that it is turned on. I've turned it off and then back on. I've rebooted the phone, but to no avail.  Has anyone else encountered this new "feature"?
    Thanks,
    Allan

    The only way I can get character count back is to disable both iMessage and MMS.  I agree it is annoying.  iMessage only works between iOS 5 devices, and since the whole world does not use Apple products, it's not like I still won't be sending plain old SMS text messages to people.  If you type more then the SMS character limit, AT&T still happily sends it, their servers just truncate it, so the character count feature is hardly an outdated or pointless feature.
    I have been sending fewer and fewer texts though anyway, and using email instead. but this just pushes me further away from texting.  Most of my work texts are to blackberry users, so no iMessaging with them, but having to go back and forth into settings to enable/disable iMessage means I will likely just leave iMessage off all the time anyway.

Maybe you are looking for

  • Issue in Creation of new Value Field in CO-PA

    Hi, I have a query in CO-PA Value Field Linking. In my Development Client, 1. Created a New Value Field (No Transport Request Generated) 2. Linked to the above to new Conditon type created in SD. (Tranport request was generated) i.e. in Flow of Actua

  • Contact Pictures

    I see there is a small space for a picture of the contact in the Contacts vCard on the iPod. How do you add a photo to the vCard, and what size in pixels is generally recomended? I'm using Microsoft Outlook to put the vCards together.

  • Video playback from PB17 to Sony TV firewire port ?

    I'm wondering if it's possible to get video playback from my PowerBook 17 to a Sony HDTV firewire port ? I can't see in prefs where you can do this. Is there some software that enables this? I tried to select firewire playback from Final Cut Pro even

  • Modify finder window?

    When I open a finder window in list view it ALWAYS looks like this. So then I always have to drag the column to make it look like this. Is there anyway to have it always open with the columns all snug like in the second picture? (I'm running 10.9.5)

  • Dumping on refreshing the Infosource tree.

    Hello all, After replicating the datasources, when i try to refresh the "Infosource Tree", it is trowing the runtime error(Dump) 1. This dump is happening only on my machine(client) 2. All other machines connecting to the server are not having this k