I recently restored my entire system from a Time Machine backup. Everything seems to have come back just fine except for my Mail mailboxes. It looks like I need to rebuild each mailbox. I have literally hundreds of mailboxes and I shudder at the prospect of having to select each one individually and rebuild them. Is there any AppleScript or other program that will do this automatically?