Re: Strange bug in cyrus (missing folders with reconstruct !)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Brian,

Brian Awood a écrit :
>>>>> Does the CLIENT folder have at least a cyrus.index file in it?
>>>> No, the CLIENT folder has only subfolders...
>>> Normally reconstruct doesn't recurse through directories that aren't
>>> mailboxes unless you use the "-p partition" option.  If you don't
>>> have a partition defined, try "-p default".
>> This looks intersting, but this is what I get :
>>
>> $ /usr/sbin/cyrreconstruct -p default -rf user.psmith.CLIENTS
>>
>> user.psmith.CLIENTS does not appear to be a mailbox (no
>> /var/spool/cyrus/mail/c/user/psmith/CLIENTS/cyrus.header).
>>
> 
> Sorry about that, my recollection of -p functionality was incorrect.  It 
> will add mailboxes whose parent directory isn't a mailbox, but you still 
> have to specify the path to the mailbox.  So for example if you 
> know /var/spool/cyrus/mail/c/user/psmith/CLIENTS/submailboxname is valid, 
> then; 
> /usr/sbin/cyrreconstruct -p default user/psmith/CLIENTS/submailboxname
> should add "submailboxname" even if "CLIENTS" is just a directory without 
> cyrus metadata.

Correct ! It worked (I tried with a folder)

> The "-rf" functionality is slightly different because it
> needs a valid mailbox to start from.  
> If you have a lot of these cases, you might be able to automate this by 
> running "ctl_mboxlist -v" and cutting out the mailboxes that are listed 
> as being on the filesystem but not in the database.

Do you mean something like /usr/sbin/ctl_mboxlist   -d -x  -p default ?
I didn't find how to list folder present in system but not it database...

Denis
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux