The MessageStore comes with a "reconstruct" utility to be used in the event of a disk corruption. The reconstruct utility rebuilds the index and cache files the MessageStore uses to support the IMAP protocol. In addition, if an individual user is restored from backup, the reconstruct utility can be used to re-integrate that user's mailboxes into the MessageStore.
The reconstruct utility is available as a command within the MessageStore command-line management utility. There are three ways to use it:
msgstore> reconstruct mailbox-name-1 [mailbox-name-2 ...]Note that the MessageStore does not support messages with NUL bytes. In normal operation, PMDF will strip or downconvert such bytes prior to final delivery. However, in the event such a message is detected during the reconstruct process,
BAD will be appended to the name
of the message file and the message will be ignored.
-recurse or -r switch is used to specify this
behavior. If no mailbox names are provided, then all mailboxes in the
mailbox list will be reconstructed.
msgstore> reconstruct -r [mailbox-name-1 [mailbox-name-2...]]
-mailbox_list or -m switch is used to specify
this behavior.
msgstore> reconstruct -mNote that this command uses the user database to determine the list of users to reconstruct, so in the event that database is corrupted, the
x-build-user-db command must be used first.
The name of a user's INBOX in the MessageStore is
Other Users/userand their personal folders are one level below that. Thus if the user
joe creates the folder stuff, the full name
for that folder would be
Other Users/joe/stuffSince these names contain spaces, it will be necessary to enclose the mailbox names in double quotes. As a conveninence, the reconstruct utility will prepend Other Users/ to any mailbox name argument which does not already begin with Other Users/ or Public Folders/.