Currently Being ModeratedFeb 23, 2012 2:31 PM (in response to JerryP)
Hello Jerry, to be safe...
First Quit Mail, then I'd backup these two Mail folders, by right clicking on them in the Finder, then choose Archive/Compress.
(Could be a different folder here if you chose such in Mail Prefs)
Right click on that Mail folder, choose archive, you'll get everything in the folder, and the folder itself in a file called Mail.zip, move it to a safe place, same for the Mail Downloads folder... only the plist is separate.
Currently Being ModeratedFeb 23, 2012 2:48 PM (in response to BDAqua)
I'll do that.
Now, Moving on beyond backups: what do I need to replace, and how?
Currently Being ModeratedFeb 23, 2012 3:06 PM (in response to JerryP)
With Mail not running of course, likely just move or trash these files...
Move this Folder to the Desktop...
Move this file to the Desktop...
Reboot. Setup Mail again.
Currently Being ModeratedFeb 24, 2012 12:20 PM (in response to BDAqua)
I tried this yesterday (twice!), with mixed results, so I have gone back to where I was before. Your suggestions were helpful, but not enough to fix whatever's the problem. Here's what happened:
1st time: as I tried starting up mail, I got the wizard dialog leading me through setting up the first email account, with an option to import mailboxes. I skipped that option, assuming I'd have a chance to do that later. I went ahead to set up all the email accounts. Now the gmail accounts were fully functional, but the former USCable accounts ( firstname.lastname@example.org ) wouldn't set up properly! One could receive but not send, another wouldn't do either. [ NOTE: I've wondered if this had to do with the fact that this USCable email server will cease functioning next week, and might not be working right, but I think the problem is mainly with my version of Mail].
And the Yahoo account wouldn't work either.
Add to that, I couldn't get a full import of the mailboxes. When I imported them later, I seemed to only get the empty boxes, which said they each had X # of unread messages in them -- but they were actually empty.
2nd time: So I cleared everything out again, and started over, this time importing the mailboxes at the first prompt. This went fine, but there was no improvement on the email account functioning over the first time.
SO.... I gave up for the day, having sunk 8 hours into this mess. I started over a 3rd time, I restored the files you'd suggested I back up elsewhere, re-imported the mailboxes, and our Mac Mini Mail is back to having the problems with GMail it had before.
Any suggestions for the next time I have some time to work on this?
Currently Being ModeratedFeb 24, 2012 12:38 PM (in response to JerryP)
I'm wondering how much of this might be due to your ISP, not that they'd know of course, I think we should've worked on what you had at the 2nd time.
Currently Being ModeratedApr 29, 2012 5:22 AM (in response to JerryP)
Had the same problem. Apple Mail was corrupted, suddenly wouldn't recognize the incoming and outgoing mail servers even though it worked fine on Thunderbird and Apple Mail on the iPad. I followed the above suggestions to archive certain files and delete specific files. Same problem. So I went back and this time I moved the ENTIRE MailData folder to the desktop and restarted.
WORKED. I can now send and receive email like before.
Currently Being ModeratedFeb 10, 2014 6:59 PM (in response to Fulton The Monk)
OK, I worked with Evan at Mac support and here is how to do it. First I would suggest copying and remove any large files like pictures from your emails. This will greatly speed up the re-indexing process.
First, back up all your personal directories, or at least your personal library: Macintosh HD>Users>"Your Login Name">Library
You will need to see your hidden files in finder so open the Terminal application, copy and paste the following:
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
Quit the Mail application if it is still running.
Reopen Finder and go to your personal library (see above path). Right click and select "Open in New Tab".
Inside the Libary go to the following:
Macintosh HD>Users>"Your Login Name">Library>V2>Mailboxes
Copy all the *.mbox files from your backed up library folder to this location.
Go back one director and open Macintosh HD>Users>"Your Login Name">Library>V2>MailData
Delete all Envelope Index* files.
This will force Mail to create a new index when it is opened.
Go to your Terminal application, copy and paste the following:
defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder
Most files are hidden for a reason and should remain so.
Reboot your Mac, this will clear any Ram based index files.
It should come up like it did the first time and start creating a new index.
Your Done, Have Fun
Currently Being ModeratedFeb 11, 2014 7:06 AM (in response to JerryP)
I have just had a quick read. You may not have had much corrupted before you started playing but unfortunately you may have introduced a few extra problems.
- You don't appear to have done the thing I would do first: delete the password entry in Keychain for any non-working service - they can get corrupted resulting in silly error messages.
- I have checked for the latest Gmail settings and put them below. I advise that you use these with SSL for both incoming and outgoing email.
Standard Gmail configuration instructions:
Incoming Mail (POP3) Server - requires SSL: pop.gmail.com
Use SSL: Yes
Outgoing Mail (SMTP) Server - requires TLS or SSL: smtp.gmail.com
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465
Server timeouts Greater than 1 minute, we recommend 5 Full Name or Display Name: [your name] Account Name or User Name: your full email address (including @gmail.com or @your_domain.com) Email Address: your email address (email@example.com or username@your_domain.com) Password: your Gmail password
I would get the accounts working first before trying to move any further items in ~/Library/Mail
Once things are working you could try copying individual .mbox folders from a working computer to the problem one. Quit both Mail applications first.
I use POP on multiple computers and often use one to restore another. I Bcc all outgoing email to myself so all computers have all outgoing messages. I keep messages on the server for 122 days (4months) - slightly tedious to set this on Mail but it can be easily set to a month. I mainly use Thunderbird without any folders except the Archive ones so it is very easy to maintain the same structure on all computers.
You can always download everything on the server again by deleting MessageUidsAlreadyDownloaded.
Currently Being ModeratedFeb 11, 2014 10:13 PM (in response to 2-fry)
History update to my previous post:
Evan from Apple Support and I tried importing .mbox files, it would not work. I had to reinstall 10.9.1 from scratch to remove a malicious program so I was starting with a virgin Mail application. I tried reverting the OS with Time Machine to a date before I noticed the change, but it did not fix the erratic behavior. I had previously imported all my emails from Thunderbird which was only partially successful. This may have had something to do with the import function not working. I did not even try to move any email accounts, I just recreated them in Mail. I keep all my emails on my computer locally so they are not saved on my email servers, which have small email size limits. I was only posting how to restore the email messages stored in Mail when the import function did not work.
Currently Being ModeratedFeb 12, 2014 4:43 AM (in response to 2-fry)
@ 2-fry: You are on the wrong forum. This is the Tiger forum. My earlier post was to the OP who has Tiger. It is easy on Tiger and Leopard to copy mbox folders with the Finder - this gives more control than Import. This may be more tedious on your much later OS.