Seth Woolley's Man Viewer

reconstruct(8) - reconstruct - reconstruct mailboxes - man 8 reconstruct

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

RECONSTRUCT(8)                                                  RECONSTRUCT(8)

       reconstruct - reconstruct mailboxes

       reconstruct  [  -C  config-file ] [ -p partition ] [ -x ] [ -r ] [ -f ]
       reconstruct [ -C config-file ] -m

       Reconstruct rebuilds one or more IMAP mailboxes.  When invoked with the
       -m  switch(1,n),  it  rebuilds the master(5,8) mailboxes file.  It can be used to
       recover from almost any sort(1,3) of data corruption.

       If Reconstruct can find existing header and index files, it attempts to
       preserve  any data in(1,8) them that is not derivable from the message files
       themselves.  The state reconstruct attempts to  preserve  includes  the
       flag  names,  flag  state,  and  internaldate.  Reconstruct derives all
       other information from the message files.

       Reconstruct reads its configuration options out  of  the  imapd.conf(5)
       file(1,n)  unless  specified  otherwise by -C.  Any mailbox directory under-
       neath the path specified in(1,8) the partition-news configuration option  is
       assumed to be in(1,8) news format.

       Reconstruct  does not adjust the quota(1,8) usage recorded in(1,8) any quota(1,8) root
       files.  After running reconstruct, it is advisable to run quota(1,8)(8) with
       the -f switch(1,n) in(1,8) order to fix the quota(1,8) root files.

       -C config-file
              Read configuration options from config-file.

       -p partition
              Search  for the listed (non-existant) mailboxes on the indicated
              partition.  Create the mailboxes in(1,8) the database in(1,8) addition  to
              reconstructing them.  (not compatible with the use of wildcards)

       -x     When processing a mailbox which is not in(1,8) the mailbox list (e.g.
              via  the  -p or -f options), do not import the metadata from the
              mailbox, instead  create  it  anew  (this  specifically  affects
              atleast  the  mailbox's seen stat(1,2) unique identifier, user flags,
              and ACL).

       -r     Recursively reconstruct all sub-mailboxes of  the  mailboxes  or
              mailbox prefixes given as arguments.

       -f     Examine  the  filesystem underneath mailbox, adding all directo-
              ries with a cyrus.header found there as new  mailboxes.   Useful
              for restoring mailboxes from backups.

              Rebuild  the  mailboxes file.  Use whatever data in(1,8) the existing
              mailboxes file(1,n) it can scavenge, then scans all partitions listed
              in(1,8) the imapd.conf(5) file(1,n) for additional mailboxes.

       You  want to reconstruct the index files for a user, you have recovered
       a deleted mail(1,8) file(1,n) from backup  and  given  it  a  suitable  name  (eg
       user/ben-lacy/33.), but it is not visible since it is not indexed:

       reconstruct -r user.ben-lacy

       If  you have the unixhierarchysep:yes option set(7,n,1 builtins) in(1,8) /etc/imapd.conf you
       would need to run:

       reconstruct -r user/ben.lacy


CMU                              Project Cyrus                  RECONSTRUCT(8)

References for this manual (incoming links)