2.4.18, problem with reconstruct

Sergey a_s_y at sama.ru
Thu Feb 4 19:06:24 EST 2016

On Friday 05 February 2016, Andrew Morgan wrote:

> > 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.

Good when boxes are few and known. I don't know exactly how many boxes
I need to fix. Ok, I wrote script. It may be useful to someone.


[ -d $BASE_DIR ] || exit

find $BASE_DIR -type d | \
while read DIR; do
    [ "$DIR" = "$BASE_DIR" ] && continue
    if [ -d $DIR ]; then
        FILES=`find $DIR -type f | wc -l`
        if [ $FILES -eq 0 ]; then
            touch $DIR/cyrus.header
            chown cyrus:cyrus $DIR/cyrus.header
            echo $DIR/cyrus.header


More information about the Info-cyrus mailing list