Mail.app not restoring properly - keeps asking to import mailboxes, crashes
After trying to delete the Envelope* files and rebuilding the mailboxes, it started crashing completely.
I then restored both the entire ~/Library/Mail folder as well as the ~/Library/Preferences/com.apple.mail.plist file from my 1 day old Time Machine backup.
Launching Mail after this restore brings up the "Welcome to Mail" window, as if upgrading from Tiger and it then starts importing mailboxes.
After a few hundred (out of ~30,000) messages Mail.app just crashes, and trying to launch it again repeats the precise same thing again and again.
I've also tried launching it after having uninstalled all bundles by the way, and the crashes are pretty much the same.
I did note, however, that the Envelope files that are normally in the ~/Library/Mail folder, are non-existant in any of the Time Machine restore points - this seems like the reason Mail.app absolutely must start by importing the mailboxes, to create an Envelope Index etc.
Any advice for solutions/workarounds etc. would be most appreciated - I'm currently Mail-less!
Thanks!
Thanks.
MacBook, Mac OS X (10.5.2)