Mail is restoring thousands of messages to inbox

I upgraded from Tiger 10.4 to Leopard 10.5.8 about a month ago and have been running Time Machine.
I move my mail from my inbox (I have several accounts) to different topic files, so that I don't have more that about 100 messages in the sum of my inboxes. I never delete messages, so this has nothing to do with the trash.
Searching the contents of mail didn't work, so I tried rebuilding the accounts within the inbox.
Now here is the weird thing. If I look at the Time Machine backup of ~/Library/Mail/POP-<account>, I see that there have been about 6000 .emlx files in the folder, but I only saw about 50 to 100 of these at any one time.
When I did the rebuild, it gradually increased the number of files in the folder to about 11000. It must have been getting these from the folders to which I had moved the messages, because I had taken mail offline, so it couldn't be getting them from the POP mailbox. When the rebuild was finishing, the status line in the window header said about 6 billion messages.
Now that the rebuild has completely finished, it says 143 messages 88 unread, but there are still 6241 .emlx files in the folder.
This is really weird. What on earth is going on?

Well, I moved the 143 messages to another mailbox, so that account's inbox was empty. (These messages were all really old ones, not recent ones) Then I rebuilt that account's inbox. Again, the folder on disk grew to over 11000 messages, then reduced again back to 6241 .emlx files. When the rebuild had finished, there were no messages showing in account's inbox, despite the 6241 files in the folder.
Then I quit Mail, removed the Envelope Index file, and then restarted Mail to re-import all the mail (in accordance with http://docs.info.apple.com/article.html?path=Mail/3.0/en/14019.html). Towards the end of the import, all 6241 files were moved across from the old inbox messages folder to the new one (with all new .emlx file numbers).
So mail really thinks those files should be there, but doesn't show them in the inbox. I really don't understand where Mail is getting the details and locations of the messages for restoring them (even temporarily) to the inbox!!
The only unusual thing is that the POP account on the server has some 14,000 messages. There are actually two MessageUidsAlreadyDownloaded files, the second called MessageUidsAlreadyDownloaded2.

Similar Messages

  • Mail constantly checking thousands of messages

    For the past several weeks each time I open mail and all throughout the day Mail says it is checking thousands of messages (see attached).
    I've read about this happening to others in various other forums, but not a fix.  Any thoughts on why it is happening and how to stop it?

    Anyone have any thoughts on this? It is still happening.

  • Mail says I have 4294967266 messages in Inbox.

    I've just set up Mail for the first time, with a brand new Mac Pro running OS X 10.5.5, and I'm accessing an IMAP account. Mail reports the correct number of messages in every folder except the Inbox. Sometimes it says I have 1 message, or 4 messages, or 8 messages, but usually it says I have around 4 billion messages (the actual number varies, but it's always around 2 to the power of 32).
    All these numbers are powers of 2, so I think this must be a mathematical error somewhere. Is this a known bug with the Mail app? Or is it possible the problem is on my IMAP server's end, even though this didn't happen when I used a different mail program?
    Everything else seems to be functioning correctly, so it's not a dire situation. It's just reporting the incorrect number of messages.
    Any ideas?
    Thanks.
    David

    I did exactly what you described, and it seemed to rebuild okay. But it didn't solve the problem.
    Does Apple Mail calculate the number of messages on its own, or does it receive that information from the server? Is it possible it's a problem on the server end?
    Incidentally, I found someone else who posted a similar problem in the forum (same symptom, but he was using a POP account), but it doesn't look like he ever found a solution: http://discussions.apple.com/thread.jspa?threadID=1760862&tstart=32

  • Mail w/ Gmail showing "important" messages in inbox as unread even when deleted and read on other devices

    This is a werid one but hoping somehere here can help or at the very least someone from Apple is listening.
    I'm using several Gmail accounts across all of my macs and iPhone / iPad.  To be specific:
    13" MacBook Air - Mid 2011
    13" MacBook Pro - Mid 2012
    27" iMac - Mid 2012
    iPhone 5s
    iPad Mini
    (All Macs are running 10.9 with the latest build of Mac Mail 7 (1822).  All software updates are performed on all machines.  Both iDevices are iOS7 latest versions.)
    All of my emails (5 gmail accounts and 2 exchange accounts) but one (a Gmail account) work just fine across all devices.  I have one Gmail account that acts weird, but only on one mac (iMac 27").  Here is the issue:
    On this account, all devices EXCEPT the iMac, when I read a message it shows up as read on all other devices.  When I delete a message it deletes from all other devices (but is still accessable from All Mail folder).  However on the iMac, it never shows up as read (still shows the blue dot next to it and still shows a number next to the mailbox name).  If I delete a message on another device, someimtes on the iMac is remains in the inbox, sometimes it deletes.
    Some further info that might help / things I have tried:
    I tried Removing the acocunt and re-adding it to Mail.
    I have tried reindexing all mail per Apple's method.  This works, but as new mail comes in, and gets read on other devices, the problem returns.
    I have tried to "rebuild mailbox" about 20 times.  Sometimes it works, sometimes it does not.  The problem always returns as above, after reading / deleting mail on other devices.
    Sometimes just rebooting Mail seems to catch some of the items deleted on other devices, but not mail that is read on other devices
    I also noticed that many of these mail itmes were labeled as "important" in GMail so I went in and switched Gmail out of the "important" mode and back to the classic.  Then I reindexed and rebuilt again just to be sure.  Now the mail is no longer labled Important, but the read counts are not correct and I'm still showing read mail as unread on this one device.
    I have also deeply compared mail on my iMac and my MBA.  All settings in preferences are the same.
    Does anyone have any idea why this is happening?  It's making it very hard to use my iMac for work and it's my primary machine.  I'm cringing at the alternatives (outlook is simply not an option for me)

    Read the blog post Mail in Mavericks Changes the Gmail Equation and see if there suggestions work for you.

  • Mail on iPhone showing "-2" messages in inbox...

    This has been going on for a couple weeks now. If I have no messages in the inbox - it says I have "-2" - and if I have two or less opened emails in the inbox - it won't let me load them.

    Read the blog post Mail in Mavericks Changes the Gmail Equation and see if there suggestions work for you.

  • Mail Program Popping Thousands of Messages

    All,
    I have the Ipad 3 and Comcast POP account.  All of a sudden the mail program is ignoring the 100 message threshold and literally downloading everything off of the Comcast server (thousands and thousands of emails).  I've deleted the account and recreated it and it still exhibits the same behavior.  This started happening yesterday.  Any insight into how I can make the Mail program stay true and only hold 100 messages?
    Thanks!

    Anyone have any thoughts on this? It is still happening.

  • Mail 4.2 Automatically Deleting Messages from Inbox/Sent after 30 Days

    Running Mail 4.2 and four POP accounts - I've looked everywhere in Preferences but there is nothing that indicates why Mail should be deleting my Inbox and Sent messages over 30 days old. This just started and it has always let me view my messages back well over a year. The messages that I've moved to mailboxes I've created are all intact, just the Inbox/Sent.
    This is not good because I've kept a lot of messages in there I've wanted to keep. I'm running Time Machine and it's no use -- the messages don't exist there either. Any thoughts?
    I suppose I could run a script each day to move Inbox/Sent messages to a "Hold" mailbox but that seems like a ridiculous work-around. Thanks! Greg

    I usually either delete them after I've answered them, or move them to an appropriate mailbox I've created - I have at least 15 - to keep (some indefinitely). I try to keep my inbox and sent box reasonably clean - the only messages there are current/unanswered/waiting for action.
    I used to have a few problems with messages disappearing quite some time ago and could not figure it out until I finally changed my settings on the Comcast web mail preferences - they are now set to be deleted after 30 daywhich is fine for me. My Mail preferences are set to remove messages from server after one week - but they are not; as I learned, the Comcast settings override the Mail settings.
    It's a long shot, but you might want to change the settings on your Comcast web mail not to delete messages until 90 days later - changing my settings took care of my local Mail problem.

  • Why does mail suddenly import thousands of messages again?

    Once every few months Mail under 10.6.8 re-imports 2700 or so emails and takes half an hour, but when finished it has not added anything I see in the mail list.
    Specifically there are no "new" email messages.  This has been going on for years.
    2010 MacBook Pro w/10.6.8
    Why is it doing this and is anything wrong somewhere?
    TIA

    This is my web setting for gmail
    Notice what is checked.  Now my corresponding Mac Mail sidebar
    All mail is a hodpodge.  I would not turn that on or (as you can see) even let it be shown.

  • Mac Mail Constantly Downloading thousands of messages from Gmail IMAP

    Hello,
    I have seen similar problems posted, but no real solutions.  I use Google apps +(and regular gmail) and like to keep copies of my messages saved locally on my Macbook.  When I setup an IMAP account in Mac Mail ver 4.6, it downloads the messages fine, but then constantly keeps 'updating' and downloading more messages - the status indicates x number of messages out of 20,000+
    This eats up my hard drive space very quickly! 
    Any solutions? 
    Much appreciated!
    /M

    MateoV wrote:
    Ok - maybe I am confusing my 'All Mail' folders with my acutal memory.  But here is why I think there is a problem:
    My google apps says:
    Using 3.7 GB of your 25 GB
    and
    My gmail says:
    Using 7.5 GB of your 10.1 GB
    The storage referred to is the amount in your Gmail or G.Apps account, not Ram or HD space on your Mac FYI

  • E-mail - windows live - thousands of messages in m...

    Can anyone help - I have tried everything - all the usual POP3 SSL ticks etc etc etc
    I cannot stop receiving hundreds and hundreds of e-mails (unless of course I press stop) all going back to 2012 all just repeats
    Deleted 2500 yesterday and then every time I checked it downloaded more. 
    Started yesterday
    Is it BT or could it be my security?
    Is it me or is the BT site awful to find info?
    TIA

    Anyone have any thoughts on this? It is still happening.

  • How do I restore Mail messages to Inbox

    While working with my ISP on a mail problem I deleted all of the messages from Inbox and Sent.
    I maintain regular backups so I have the messages there. They are located at User/Library/Mail/Mailboxes/POP-(me)@pop-server. . . .
    How do I restore them to Mail's Inbox and Sent respectively?
    Thanks!
    -Joe

    Kurt,
    Your answer put me on the right track but it would not work quite like you said. What I needed to do was import the InBox and the sent folders from the backup copy. This creates an imported mail folder containing the messages from the backup. Then from the Inbox and the Sent folders in the import folder I moved the messages into the main Inbox and sent folders.
    On Both of my computers there is no Mail folder in the Home/Library. It definitely is located in the User/Library folder.
    Thanks for your help getting me there!
    -Joe

  • How can I empty anApple e-mail program mailbox.  I have thousands of message I wish to delete, but am unable to do so.  Any suggestions?

    How can I empty an Apple e-mail program mailbox.  I have thousands of message I wish to delete, but am unable to do so.  I open the e-mails on my laptop, so I don't usually need to open them on the iMac.  Whenever I use select all, and the move to trash, they always seem to reappear again.  Prospectively, I know I can change the e-mail settings in preferences, but that doesn't help get rid of what is already there.  Any suggestions?

    You mention 2 computers. Not sure how one relates to the other. Are the messages on one and not the other?
    Are they in the Inbox, or another local folder you created? If a local folder, delete the folder.
    Do you have anything used to sync messages between the 2 computers? If so, disable it.
    Select the messages and choose Delete instead of moving to the trash.
    If that doesn't work, rebuild the mailbox, quit Mail and reopen and try again.
    If all fails, delete the account from the computer. Since it is POP, when you re-add the account, there won't be any messages to download.

  • In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    WoW! I'm surprised by the speed you reply and how serious you are with your answers! Thank you very much guys!!!
    Replying to Toad-Hall:
    I have a proper mailing list created as the manual says. It's a small group of contacts that exist in the address book. I do not type them as CC I just write "clients" and before I finish the word the name of the list appears.
    How can I stop Avast from scanning out going mail? It's the free version and I haven't found a real solution. I also tried to totally turn off the "mail shield" but I kept facing the same issues. However, I just turned it off and tried to send the mail, I didn't restart windows or thunderbird
    The idea with ipage server was fantastic! It would never come to my mind!!! As far as I see, the limit is 250 mails per hour. I doubt if I have ever reached the 50% of it. I also don't reach the bandwith limits... Besides that, if I had exceeded the limit I would get multi responses that "mail was not delivered".
    I want to thank you both for your excellent help so far. I'm sad to say that I still haven't solved the issue. When I made smaller lists, with the same addresses chosen from the address book I could send the messages, having a short delay. I would blame Avast but I tried the same on another laptop with my favourite NOD32 and had the same problem.
    What else should I check? Should I focus on Avast?

  • Mail 4.1, Exchange, and Duplicate messages in inbox

    Using Snow Leopard and Mail 4.1 to access an exchange account and a gmail account. The problem ONLY occurs in the Exchange account. My messages are all duplicating. Only in Mail are they duplicating. I've checked Outlook Web Access and Outlook on my windows machine - no duplicates there. Didn't start out this way, and the problem came once before, stopped, and now it has returned. If I delete one copy of the message, both messages get deleted. Is there someway to rebuild the mail inbox? or resync?
    Also, tried creating a new folder on the exchange server, copying all messages from inbox to the new folder, then moving back. In the temp/new folder, the messages were single. After copying back to Inbox - they doubled again. And again, only in Mail. The msgs remain single in Outlook, OWA, iPhone, Blackberry.
    UPDATE: I highlighted the exchange mailbox and went to MAILBOX > REBUILD. Erased everything but only in Mail. The messages are still on the Exchange server and can be seen by OWA, Outlook, iphone and blackberry. New messages are going to the Mail Exchange inbox but old messages are gone. Any way to get them back?
    Message was edited by: Atlantax

    FromBone wrote:
    Thanks V.K.! So there is no chance for me to re upload all the messages from my mac to my yahoo inbox.
    nope.
    May I ask yahoo to that?
    you can ask but they won't say anything different.
    I could never have known that the default setting on mac's mail would be "remove copy from server after retrieving a message".
    now, that's a valid point. this is not exactly advertised and mail setup assistant does not tell you anything about it. you can voice your concern to apple about this issue here
    http://www.apple.com/feedback/macosx.html
    I wish apple had some kind of a solution for this.
    there isn't anything you can do now. it's not up to apple at this point. you just can't upload messages to a POP email server. it does not matter what email client or what operating system you are using.
    Thanks again

  • Inbox in Mail showing (4294963841 messages) but inbox is empty

    in OS X 10.5.7 while using Mail 3.6 (935/935.3) My inbox header shows:
    Inbox (4294963841 messages)
    but my inbox is empty. This started occurring after upgrading to 10.5.7
    M
    XMLA

    I'm having the same problem and have only noticed it since upgrading to 10.5.7. I've tried rebuilding the mailbox a few times, disabling the GrowlMail bundle, vacuuming Mail's SQLite database, and even tdeleting the account and starting over. (It's a Gmail account I connect to via IMAP.) And yet:
    Inbox (4294966402 messages)
    And the inbox is empty. I sent it an email and I get this report:
    Inbox (4294967161 messages, 1 unread)
    Not sure how one message counts as over 700, but there you go.
    This is one of two Gmail accounts I check separately, and the other account is not behaving in this manner.
    Mail also has some trouble quitting—I often have to force quit it. Not sure of those are related or not, but I have noticed it. Otherwise, this odd reporting of messages is benign, but bizarre.
    Message was edited by: Arlo Guthrie (changed a misspelled word)

Maybe you are looking for

  • Down payment on computer?

    Is it possible to have a down payment on a new computer from best buy?

  • CIMC Launch KVM Console

    I am on the CIMC and when I select Launch KVM Console,  I get a pop up a Do you want to continue ? I select Continue It goes to starting application, Verifying application. ( takes about a minute )   then pops up a  Do you want to run this applicatio

  • BPM Vs Alert

    If I want to use ALERT, should I need to have a BPM in my Scenario? For example I am doing a File to File scenario, after successful execution of this process, I want to Trigger an Alert, whether it is possible? If so, how to do this? Thanks.

  • How can I load font in real device?

    I am building mobile text SMS in my native country language using j2me wireless toolkit. But I face one problem. Without installing font in windows font directory, I did not display my country font. I used Unicode for my project. My question is: * Ho

  • Nokia c503 can't able to play any3d motion sensor ...

    i purchase c503 and download game like raging thunder etc. After installation it could not open when i try clicking icon without any error msg these game are playable in less Expensive nokia 5233 easily but nokia c503 can not open these game!! Plz he