From: Andreas Winkelmann (no email)
Date: Tue Oct 03 2006 - 04:49:13 EDT
Am Tuesday 03 October 2006 02:29 schrieb Jo Rhett:
> I know it's been a few years since I've been active here, but I think I
> remember this being an issue before. Sadly, there's no serious mention
> of reconstruct in the Wiki.
>
> This syntax is not working to recover a folder where I had to restore
> messages:
>
> su - cyrus -c "reconstruct -r user/"
>
> I watched it with ktrace/kdump and its not even looking for subfolders.
# su - cyrus -c "strace -eopen reconstruct -r user.test"
open("/var/spool/imap/user/test/cyrus.header", O_RDWR) = 4
open("/var/spool/imap/user/test/cyrus.index", O_RDWR) = 5
...
open("/var/spool/imap/user/test/subfolder1/cyrus.header", O_RDWR) = 4
open("/var/spool/imap/user/test/subfolder1/cyrus.index", O_RDWR) = 5
...
open("/var/spool/imap/user/test/subfolder2/cyrus.header", O_RDWR) = 4
open("/var/spool/imap/user/test/subfolder2/cyrus.index", O_RDWR) = 5
Seems to work here.
Maybe you should give us some more information about your setup?
> This doesn't work either
> su - cyrus -c "reconstruct -xrf user/"
>
> It seems the only thing that works is
>
> su - cyrus -c "reconstruct user/username/*@domain.dom"
> su - cyrus -c "reconstruct user/username/*/*@domain.dom"
> su - cyrus -c "reconstruct user/username/*/*/*@domain.dom"
> ...etc
And show a list of these Mailboxnames with cyradm.
-- Andreas ---- 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
|
|
|