[HOW TO] Rebuild an MailboxIndex

How to Rebuild an Mailbox Index.

This article explains the method of rebuilding mailbox index of MailNow! 5.
There are three different ways of rebuilding of mailbox index in MailNow! 5.
  1. Rebuild a single person indice.
  2. Force rebuild a single person indice.
  3. Rebuild for everyone
Lets have a look one by one, now.
1. Rebuild a single person indice.

To rebuild a single person indice for a particular mailbox using smart rebuild (faster, it will detect if number of mails are same or not), you may type    http://127.0.0.1:12080/rebuild/user@domain/mailboxname at your server's browser.

For example, to rebuild inbox, you need to type http://127.0.0.1:12080/rebuild/marcus@internetnow.com.my/inbox in your browser.
2. Force rebuild a single person indice.

To force rebuild a single person indice (this will rebuild regardless if the numbers of mails and indices matches), you may type   http://127.0.0.1:12080/rebuildforce/user@domain/mailboxname at your server's browser.

For example, to rebuild inbox,   you need to type  http://127.0.0.1:12080/rebuildforce/marcus@internetnow.com.my/inbox in your browser.

3. Rebuild for everyone.

To rebuild for everyone , you need to run the tool  :  Mn5RebuildAll.py <rootmailbox>

For example, mn5rebuildall c:\mailbox.