Repair of the Week
A 12-inch PowerBook G4 found its way to the Small Dog service facility in South Burlington this week. After upgrading from 10.4.11 to 10.5.4, Mail would no longer display the tens of thousands of e-mails archived there. While it shouldn’t be, it is still very surprising to me that so many computer users never ever back up their computers, even when their entire business depends on the data on their machines. This customer was lucky that it only took a good scare to get her backing up. It seems to me that most customers only back up their hard drives after catastrophe.
First step, as with most all software problems, was to ensure everything was up to date. Software Update in the Apple Menu took care of the 10.5.6 upgrade and a few more. After restarting, the problem persisted.
While it is almost always possible to come up with a solution by one’s self, it is almost always more efficient to ask Google if nothing immediately comes to mind. I did just that, and came up with the answer on Apple’s support discussions site.
After quitting Mail, the key was to remove the Envelope Index File (~/Library/Mail/Envelope Index) from the user account. Then, the following was pasted into Terminal:
defaults remove com.apple.mail JunkMailBehaviorHasBeenConfigured
defaults remove com.apple.mail JunkMailHeaderFlags
defaults remove com.apple.mail JunkMailInfoPanelHasBeenShown
defaults remove com.apple.mail JunkViewerAttributes
defaults remove com.apple.mail LastTimeJunkWasVisited
defaults remove com.apple.mail NumberOfMessagesMarkedAsJunk
defaults remove com.apple.mail NumberOfMessagesMarkedAsNotJunk
defaults remove com.apple.mail UseJunkMailHeaderFlags
After pressing Return, I quit out of Terminal and launched Mail. The setup guide appeared, and following the instructions and answering questions logically, the mail database was re-imported—folders, rules, and all preferences intact.
