recursive reconstruct does not work?

Andreas Winkelmann ml at awinkelmann.de
Tue Oct 3 04:49:13 EDT 2006


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/username at domain.dom"
>
> 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/username at domain.dom"
>
> 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


More information about the Info-cyrus mailing list