Milen Dimov wrote: > Hi, > > It looks there is a problem with 'reconstruct' in Cyrus IMAPd 2.3.1. I > did copy mail spool directory of our 2.2.12 Cyrus IMAPd server to a new > machine with Cyrus IMAPd 2.3.1 installed and tried to reconstruct the > IMAP folders. This is the output from 'reconstruct' when I tried to > reconstruct single personal IMAP folder: > > [EMAIL PROTECTED]:~> reconstruct -p default -rf user/[EMAIL PROTECTED] > user/[EMAIL PROTECTED] does not appear to be a mailbox (no > /var/spool/imap/domain/test.com/user/bozaFNAME_HEADER). > [EMAIL PROTECTED]:~> > > The same action performed with 'reconstruct' binary from version 2.2.12 > produce: > > [EMAIL PROTECTED]:~> reconstruct-2.2.12 -p default -rf user/[EMAIL PROTECTED] > discovered test.com!user.boza.Sent > discovered test.com!user.boza.Drafts > discovered test.com!user.boza.Templates > discovered test.com!user.boza.Trash > user/[EMAIL PROTECTED] > user/boza/[EMAIL PROTECTED] > user/boza/[EMAIL PROTECTED] > user/boza/[EMAIL PROTECTED] > user/boza/[EMAIL PROTECTED] > [EMAIL PROTECTED]:~> > > Thank you, > Milen > > ---- > Cyrus Home Page: http://asg.web.cmu.edu/cyrus > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html >
Hi, The attached file is a small patch produced by Sava Chankov <[EMAIL PROTECTED]> that fixes the reported problem. Cheers, Milen
--- cyrus-imapd-2.3.1/imap/reconstruct.c 2006-01-11 18:50:14.253930750 +0200 +++ cyrus-imapd-2.3.1-patched/imap/reconstruct.c 2006-01-11 18:45:33.028355250 +0200 @@ -248,7 +248,7 @@ IMAP_ENUM_METAPARTITION_FILES_HEADER)) ? start_part_mpath : start_part_path; mailbox_hash_mbox(mbbuf, sizeof(mbbuf), path, buf); - strlcat(mbbuf, "FNAME_HEADER", sizeof(mbbuf)); + strlcat(mbbuf, FNAME_HEADER, sizeof(mbbuf)); if(stat(mbbuf, &sbuf) < 0) { fprintf(stderr, "%s does not appear to be a mailbox (no %s).\n",
---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html