Apple Mail crashed and I rebuilt the database. It now works but my mailboxes are missing. How can missing mailboxes be restored?
The only way this can be restored if you have a Time Machine backup or another backup which included mail.
This way all MailBox folders and messages will be restored.
If you set up Time Machine to back up files on your Mac, you can use the backups to restore lost mailboxes and email messages.