2.4.18, problem with reconstruct

Andrew Morgan morgan at orst.edu
Thu Feb 4 16:10:52 EST 2016

On Fri, 5 Feb 2016, Sergey via Info-cyrus wrote:

> Hello.
> I attempted to reconstruct some damaged mailboxes with empty
> folders, but it does not work. I use this command:
> su -l cyrus -s /bin/bash -c "/usr/lib/cyrus/reconstruct -f -r user/user at domain"
> Mail directory contains "Trash" subdirectory without any files (manualy
> created from backup). Reconstruct works if I put any of files cyrus.* to
> this subdirectory. At the same time there was the opposite problem:
> I can not delete existing directory, reconstruct restores it.
> Is this is a bug or require any other settings to run reconstruct ?

I usually use these steps to add a new folder using reconstruct:

   touch cyrus.header
   chown cyrus:mail cyrus.header
   reconstruct -f -r user.<username>

So, I think the behavior you are seeing is expected.  Create an empty 
cyrus.header file, with the correct ownership, before running reconstruct.


More information about the Info-cyrus mailing list