Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Corrupted POP account crashing Mail in Leopard

Hello all. After a full day of triage yesterday, I found that a single POP account is crashing the Mail app every time it tries to retrieve new mail. None of the other POP or IMAP accounts have any trouble sending or receiving when tested separately.

I had current backups for everything, so now I'm looking for guidance to repair / replace the damaged POP account.

If I delete that account or simply trash that mbox, is there a way to re-import that mbox from the backup copy? Will it fix the problem, or is it likely that either there's a corrupted message in the existing, downloaded mail OR a corrupted message on the server that's causing the problem?

Also, If I delete the offending POP account, which contains thousands of archival emails, will importing from the backup mean I have to wade through years of old email again? Now the messages are distributed across their respective projects in sub-folders. I'd prefer to have the archival material stay where it is.

As you may be able to tell, I'm trying to fix this with a surgical strike. I've had no trouble with Mail until yesterday, so I'm hoping to fix the problem with this one account and not waste another entire day.

Thanks for any pointers on this one,

Tim

Macbook Pro, Mac OS X (10.5.2)

Posted on May 1, 2008 8:47 AM

Reply
17 replies

May 1, 2008 9:38 AM in response to Timothy Elliott1

Tim,

Having a full backup is a good idea, but what you need to try next is not very risky, providing you can setup this POP account exactly as has been previously.

Quit Mail. In the Finder open Home/Library/Preferences and find the com.apple.mail.plist file and remove it -- either delete or drag to the Desktop to delete later. Relaunch Mail, and you will be required to enter all account setup data again, so do so, but do not agree to Import anything . Mail will then rediscover all the existing account folders, and no importing should necessary.

If there have been any changes in server names or other account info, which you do not find consistent with the name of the account folder for this account, then post back for other suggestions. The account folder name can be checked at Home/Library/Mail/the account folder.

Ernie

May 1, 2008 10:32 AM in response to Ernie Stamper

Thank you for your suggestion.

At the risk of sounding ungrateful: I'm trying VERY hard not to have to re-create all eight existing e-mail accounts, their multiple SMTP authentications and other tedious details that would be required if I trash the pref file.

Is there some way to just address the problem POP account and not gamble trying to precisely re-create all the other account details?

Thanks again,

Tim

May 1, 2008 2:15 PM in response to Timothy Elliott1

Tim,

Having made a copy of the account folder for this one account (the one in your general backup will do), launch Mail without it trying to open this one account, and then in Mail Preferences remove the account. Ignore the warnings about losing the Inbox, Sent, etc associated with the account. Quit Mail, and then relaunch and again setup the one account. Next, use the Import command and navigate to the backup copy of the account folder -- you should first use the Finder to rename the INBOX.mbox to INBOXold.mbox, and similarly with Sent Messages.mbox -- when you navigate to the level of the account folder, click Choose, and then the list of xxxx.mbox available in the folder will be presented with a box check beside each qualified mailbox, and then authorize the next step of Importing and the old account mailboxes will be imported and appear in the Sidebar to the Mail window.

Ernie

May 1, 2008 9:58 PM in response to Ernie Stamper

Hi Ernie -

Thanks for your help with this. I've managed to maintain the status quo after deleting and rebuilding the offending POP account. Everything's shiny and new, but even the new account's crashing the Mail app when it's seeking mail.

I'm not sure where to go next. I may try to clear all existing messages from the email server in case there's a corrupted file Mail's trying to download. Any further thoughts? Maybe some pref file I can clear with Console?

Thanks again,

Tim

May 2, 2008 1:38 AM in response to Timothy Elliott1

Tim,

In the latest steps, did the POP account folder for the offending account disappear from the Mail folder, and did Mail work fine in all respects before again setting up the account? Does the new POP account folder for this account bear a new date of Creation?

Try creating a New User Account on your Mac, and as that New User set up this same POP account as the only account in Mail, and see if the messages can be downloaded successfully from the server. See:

http://docs.info.apple.com/article.html?path=Mac/10.5/en/8235.html

Now that in Mail 3 there is a single file (named MessageUidsAlreadyDownloaded3) that is used to prevent duplicate download of messages from the servers, it may be possible that it is corrupt. Formerly each account folder had a file for this purpose -- in Mail 2 the file was named MessageUidsAlreadyDownloaded2. If you were to quit Mail and delete MessageUidsAlreadyDownloaded3, then Mail would again download any messages that still exist on the servers for all accounts for the second time, but there would then be a new MessageUidsAlreadyDownloaded3 file created. The test with the New User Account will help us know if this action is possibly needed.

Ernie

May 2, 2008 7:39 AM in response to Ernie Stamper

When I deleted the account yesterday, the whole thing did disappear from the mail folder. All the other accounts worked fine in its absence. All the other accounts worked fine when I created the new account, too.

I created a new user ("Cleaner!") and re-created the problem account. It downloaded the messages without any trouble.

You wrote:
"If you were to quit Mail and delete MessageUidsAlreadyDownloaded3, then Mail would again download any messages that still exist on the servers for all accounts for the second time, but there would then be a new MessageUidsAlreadyDownloaded3 file created. The test with the New User Account will help us know if this action is possibly needed."

I'm looking in the home/library/mail folder and seeing multiple MessageUidsAlreadyDownloaded. The current one ends in 3, but there is one ending in 2 (circa 2007) and one with no numeral at the end (circa 2005). Any chance these three are competing for Mail's affection?

Also, I deleted the only remaining Smart mailbox as someone else suggested based on the latest crash log. I wasn't using the folder anymore anyway. Deleting that folder and re-started had no apparent effect.

Thanks,

Tim

May 2, 2008 7:48 AM in response to Timothy Elliott1

Tim,

The MessageUidsAlreadyDownloaded files you found may be important. The one with no number at the end originated in versions of Mail prior to Tiger, while those with a "2" at the end originated in Tiger and Mail 2.x. I always recommend removing those, because they are not going to be of any use in Mail 3.x. They are left there at each step because technically you could take Mail folder backward for use in earlier versions, but there is nothing practical about preserving those files to do that, as they would quickly become outdated if Mail 3.x was used for any time before attempting the backward migration.

I have seen no "hard science" that the leftover files can compete, but I actually believe they can be problematic. Should they have been, I would fear that the corruption of the MessageUidsAlreadyDownloaded3 would not now be repaired by deleting them, but you can safely try that.

Your test as the New User tells us that it is not a problem with the messages on the server, as I am sure you recognize.

Ernie

May 2, 2008 8:40 AM in response to Ernie Stamper

You wrote:

"I would fear that the corruption of the MessageUidsAlreadyDownloaded3 would not now be repaired by deleting them, but you can safely try that."

Is the "MessageUidsAlreadyDownloaded3" file something that I can move to the desktop, re-start and have Mail app auto regenerate? I certainly wouldn't mind some dupe downloaded messages if it fixes the problem.

Tim

May 2, 2008 8:49 AM in response to Timothy Elliott1

Tim,

I thought I had made that clear in earlier posts? You can move it to the Desktop or simply delete (after having quit Mail). Once you relaunch Mail is when the duplicate downloads of anything on the servers will take place, and the old MessageUidsAlreadyDownloaded3 will be of no practical benefit ever again.

Make sure to remove the leftover old versions of MessageUidsAlreadyDownloaded before forcing the recreation of the MessageUidsAlreadyDownloaded3 file.

Keep us posted.

Ernie

May 2, 2008 10:57 AM in response to Ernie Stamper

Forcing the new MessageUidsAlreadyDownloaded and removing the extraneous ones did not make any difference.

I decided to just re-create the account as an IMAP rather than POP so I could at least download new mail. Now I have the existing POP account and its years of sent and received mail. Unfortunately, I have to keep it offline so it doesn't check for new mail and crash the Mail app.

Any way to marry these two accounts and thus preserve all the sent/received/draft messages in the original POP account with the new IMAP account that can actually receive messages without crashing?

I certainly appreciate your continuing efforts on this front. Judging by the other threads, I'm not alone in this new crash pattern.

Thanks,

Tim

May 2, 2008 11:19 AM in response to Timothy Elliott1

Tim,

Very early in this topic I explain how to remove the old account folder, and then Import its mailboxes (after renaming a bit) to be On My Mailboxes accessible in the Sidebar. Once that is done, you can Move those messages back to any current account mailbox, such as Inbox or Sent. Was there something you did not understand about doing that?

I suspect that the proper way to have proceeded was purging the com.apple.mail.plist all along. I can assure you from much experience that there are numerous instances where that is the real solution to such crashes, but you were reluctant to do that. I still would advise doing that, since corruption in any area we have discussed could result in a corruption of that plist file, and purging is often the only solution. Your test result with a New User Account is also an indicator of needing to purge and freshen the com.apple.mail.plist file.

Ernie

May 2, 2008 12:12 PM in response to Ernie Stamper

"Very early in this topic I explain how to remove the old account folder, and then Import its mailboxes (after renaming a bit) to be On My Mailboxes accessible in the Sidebar. Once that is done, you can Move those messages back to any current account mailbox, such as Inbox or Sent. Was there something you did not understand about doing that?"

Unfortunately, I spent most of yesterday doing just that. I ended up not having all my email transfer - in some cases in was as few as 99 out of a 1,000 messages. The process seems imperfect, and it took a mixture of importing and re-importing mboxes and OS X Mail options in sequence to actually coax all the existing mail back.

"I suspect that the proper way to have proceeded was purging the com.apple.mail.plist all along. I can assure you from much experience that there are numerous instances where that is the real solution to such crashes, but you were reluctant to do that. I still would advise doing that, since corruption in any area we have discussed could result in a corruption of that plist file, and purging is often the only solution. Your test result with a New User Account is also an indicator of needing to purge and freshen the com.apple.mail.plist file."

My reluctance stems from prior nightmares trying to retrieve archival and current email after rebuilding com.apple.mail.plist files in earlier versions of Mail. My experience yesterday solidified that fear. If Apple had some retrieval / rebuild utility that matched the current numbers of messages from any given account (including draft, sent, inbox, etc.) and then came up with the same numbers of re-imported messages on the other end, I'd have a lot more confidence in the process. Instead, I went from 1,024 existing messages to 623 after re-creating the account.

Believe me, I'm very appreciative of your attention, but wiping out years worth of messages with very little expectation of ever getting the full complement back is daunting. I'm going to re-investigate Mail Steward and (one hopes) find a more stable way to archive important email outside the Mail app structure.

For now, I'll take your advice about dragging all the existing messages from the POP account and dragging them to their respective places in the new IMAP account. (I asked my most recent question because I've read elsewhere that dragging files from POP to IMAP accounts often results in incomplete transfers.)

I apologize if it seems I'm ungrateful and unwilling to take good advice. I've had more problems with Leopard than the past two iterations of OS X combined, and I'm annoyed by having to waste three full days trying to fix this 10.5.2 gremlin.

Thanks again,

Tim

May 2, 2008 12:31 PM in response to Timothy Elliott1

Tim,

No offense taken, but your report of problems importing, along with your report of files leftover from use in Mail prior to Mail in Tiger, makes me think you may have several types of leftover files, and some of them are problematic to orderly Importation. Please review all my exchanges with Billy in the topic found at the link below:

http://discussions.apple.com/message.jspa?messageID=6987999#6987999

The best medicine for good importation or migration of mailbox across the evolving versions of Mail, is to have regularly used Rebuild on all mailboxes, and thus kept index files in good order. Unfortunately this is not discovered until one or more steps past the place where Rebuild could be applied prior to upgrades of OSX.

My guess is, without having specifically asked or having a full report of the contents of your xxxx.mbox folders, is that you have a small mess of leftover files. Having said that, if any xxxx.mbox you now wished to Import were limited to only contain one Messages folder and one Info.plist file, your Import would go just fine.

If you maintain one or more copies of the Mail folder or any certain account folders, you will not risk any loss -- only a possible need to retrace some recovery steps if at first you do not succeed.

Ernie

Corrupted POP account crashing Mail in Leopard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.